b_role.go 613 B

1234567891011121314151617181920
  1. package bll
  2. import (
  3. "context"
  4. "yx-dataset-server/app/schema"
  5. )
  6. // IRole Role业务逻辑接口
  7. type IRole interface {
  8. // 查询数据
  9. Query(ctx context.Context, params schema.RoleQueryParam, opts ...schema.RoleQueryOptions) (*schema.RoleQueryResult, error)
  10. // 查询指定数据
  11. Get(ctx context.Context, recordID string, opts ...schema.RoleQueryOptions) (*schema.Role, error)
  12. // 创建数据
  13. Create(ctx context.Context, item schema.Role) error
  14. // 更新数据
  15. Update(ctx context.Context, recordID string, item schema.Role) error
  16. // 删除数据
  17. Delete(ctx context.Context, recordID string) error
  18. }