m_role_menu.go 826 B

123456789101112131415161718192021222324
  1. package model
  2. import (
  3. "context"
  4. "yx-dataset-server/app/schema"
  5. )
  6. // IRoleMenu RoleMenu存储接口
  7. type IRoleMenu interface {
  8. // 查询数据
  9. Query(ctx context.Context, params schema.RoleMenuQueryParam, opts ...schema.RoleMenuQueryOptions) (*schema.RoleMenuQueryResult, error)
  10. // 查询指定数据
  11. Get(ctx context.Context, recordID string, opts ...schema.RoleMenuQueryOptions) (*schema.RoleMenu, error)
  12. // 创建数据
  13. Create(ctx context.Context, item schema.RoleMenu) error
  14. // 更新数据
  15. Update(ctx context.Context, recordID string, item schema.RoleMenu) error
  16. // 删除数据
  17. Delete(ctx context.Context, recordID string) error
  18. // DeleteByRoleId 删除数据
  19. DeleteByRoleId(ctx context.Context, roleId string) error
  20. // 更新状态
  21. UpdateStatus(ctx context.Context, recordID string, status int) error
  22. }