| 1234567891011121314151617181920 |
- package bll
- import (
- "context"
- "yx-dataset-server/app/schema"
- )
- // IRole Role业务逻辑接口
- type IRole interface {
- // 查询数据
- Query(ctx context.Context, params schema.RoleQueryParam, opts ...schema.RoleQueryOptions) (*schema.RoleQueryResult, error)
- // 查询指定数据
- Get(ctx context.Context, recordID string, opts ...schema.RoleQueryOptions) (*schema.Role, error)
- // 创建数据
- Create(ctx context.Context, item schema.Role) error
- // 更新数据
- Update(ctx context.Context, recordID string, item schema.Role) error
- // 删除数据
- Delete(ctx context.Context, recordID string) error
- }
|