Documentation
¶
Index ¶
- func NewEntClient(cfg *conf.Bootstrap, logger log.Logger) *entgo.EntClient[*ent.Client]
- type DictDetailRepo
- func (r *DictDetailRepo) Count(ctx context.Context, whereCond []func(s *sql.Selector)) (int, error)
- func (r *DictDetailRepo) Create(ctx context.Context, req *v1.CreateDictDetailRequest) (*v1.DictDetail, error)
- func (r *DictDetailRepo) Delete(ctx context.Context, req *v1.DeleteDictDetailRequest) (bool, error)
- func (r *DictDetailRepo) Get(ctx context.Context, req *v1.GetDictDetailRequest) (*v1.DictDetail, error)
- func (r *DictDetailRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListDictDetailResponse, error)
- func (r *DictDetailRepo) Update(ctx context.Context, req *v1.UpdateDictDetailRequest) (*v1.DictDetail, error)
- type DictRepo
- func (r *DictRepo) Count(ctx context.Context, whereCond []func(s *sql.Selector)) (int, error)
- func (r *DictRepo) Create(ctx context.Context, req *v1.CreateDictRequest) (*v1.Dict, error)
- func (r *DictRepo) Delete(ctx context.Context, req *v1.DeleteDictRequest) (bool, error)
- func (r *DictRepo) Get(ctx context.Context, req *v1.GetDictRequest) (*v1.Dict, error)
- func (r *DictRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListDictResponse, error)
- func (r *DictRepo) Update(ctx context.Context, req *v1.UpdateDictRequest) (*v1.Dict, error)
- type MenuRepo
- func (r *MenuRepo) Count(ctx context.Context, whereCond []func(s *sql.Selector)) (int, error)
- func (r *MenuRepo) Create(ctx context.Context, req *v1.CreateMenuRequest) (*v1.Menu, error)
- func (r *MenuRepo) Delete(ctx context.Context, req *v1.DeleteMenuRequest) (bool, error)
- func (r *MenuRepo) Get(ctx context.Context, req *v1.GetMenuRequest) (*v1.Menu, error)
- func (r *MenuRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListMenuResponse, error)
- func (r *MenuRepo) Update(ctx context.Context, req *v1.UpdateMenuRequest) (*v1.Menu, error)
- type OrganizationRepo
- func (r *OrganizationRepo) Count(ctx context.Context, whereCond []func(s *sql.Selector)) (int, error)
- func (r *OrganizationRepo) Create(ctx context.Context, req *v1.CreateOrganizationRequest) (*v1.Organization, error)
- func (r *OrganizationRepo) Delete(ctx context.Context, req *v1.DeleteOrganizationRequest) (bool, error)
- func (r *OrganizationRepo) Get(ctx context.Context, req *v1.GetOrganizationRequest) (*v1.Organization, error)
- func (r *OrganizationRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListOrganizationResponse, error)
- func (r *OrganizationRepo) Update(ctx context.Context, req *v1.UpdateOrganizationRequest) (*v1.Organization, error)
- type PositionRepo
- func (r *PositionRepo) Count(ctx context.Context, whereCond []func(s *sql.Selector)) (int, error)
- func (r *PositionRepo) Create(ctx context.Context, req *v1.CreatePositionRequest) (*v1.Position, error)
- func (r *PositionRepo) Delete(ctx context.Context, req *v1.DeletePositionRequest) (bool, error)
- func (r *PositionRepo) Get(ctx context.Context, req *v1.GetPositionRequest) (*v1.Position, error)
- func (r *PositionRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListPositionResponse, error)
- func (r *PositionRepo) Update(ctx context.Context, req *v1.UpdatePositionRequest) (*v1.Position, error)
- type RoleRepo
- func (r *RoleRepo) Count(ctx context.Context, whereCond []func(s *sql.Selector)) (int, error)
- func (r *RoleRepo) Create(ctx context.Context, req *v1.CreateRoleRequest) (*v1.Role, error)
- func (r *RoleRepo) Delete(ctx context.Context, req *v1.DeleteRoleRequest) (bool, error)
- func (r *RoleRepo) Get(ctx context.Context, req *v1.GetRoleRequest) (*v1.Role, error)
- func (r *RoleRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListRoleResponse, error)
- func (r *RoleRepo) Update(ctx context.Context, req *v1.UpdateRoleRequest) (*v1.Role, error)
- type UserRepo
- func (r *UserRepo) Count(ctx context.Context, whereCond []func(s *sql.Selector)) (int, error)
- func (r *UserRepo) Create(ctx context.Context, req *v1.CreateUserRequest) (*v1.User, error)
- func (r *UserRepo) Delete(ctx context.Context, req *v1.DeleteUserRequest) (bool, error)
- func (r *UserRepo) Get(ctx context.Context, req *v1.GetUserRequest) (*v1.User, error)
- func (r *UserRepo) GetUserByUserName(ctx context.Context, userName string) (*v1.User, error)
- func (r *UserRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListUserResponse, error)
- func (r *UserRepo) Update(ctx context.Context, req *v1.UpdateUserRequest) (*v1.User, error)
- func (r *UserRepo) UserExists(ctx context.Context, req *v1.UserExistsRequest) (*v1.UserExistsResponse, error)
- func (r *UserRepo) VerifyPassword(ctx context.Context, req *v1.VerifyPasswordRequest) (*v1.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DictDetailRepo ¶
type DictDetailRepo struct {
// contains filtered or unexported fields
}
func NewDictDetailRepo ¶
func NewDictDetailRepo(data *Data, logger log.Logger) *DictDetailRepo
func (*DictDetailRepo) Create ¶
func (r *DictDetailRepo) Create(ctx context.Context, req *v1.CreateDictDetailRequest) (*v1.DictDetail, error)
func (*DictDetailRepo) Delete ¶
func (r *DictDetailRepo) Delete(ctx context.Context, req *v1.DeleteDictDetailRequest) (bool, error)
func (*DictDetailRepo) Get ¶
func (r *DictDetailRepo) Get(ctx context.Context, req *v1.GetDictDetailRequest) (*v1.DictDetail, error)
func (*DictDetailRepo) List ¶
func (r *DictDetailRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListDictDetailResponse, error)
func (*DictDetailRepo) Update ¶
func (r *DictDetailRepo) Update(ctx context.Context, req *v1.UpdateDictDetailRequest) (*v1.DictDetail, error)
type DictRepo ¶
type DictRepo struct {
// contains filtered or unexported fields
}
func NewDictRepo ¶
func (*DictRepo) List ¶
func (r *DictRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListDictResponse, error)
type MenuRepo ¶
type MenuRepo struct {
// contains filtered or unexported fields
}
func NewMenuRepo ¶
func (*MenuRepo) List ¶
func (r *MenuRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListMenuResponse, error)
type OrganizationRepo ¶
type OrganizationRepo struct {
// contains filtered or unexported fields
}
func NewOrganizationRepo ¶
func NewOrganizationRepo(data *Data, logger log.Logger) *OrganizationRepo
func (*OrganizationRepo) Create ¶
func (r *OrganizationRepo) Create(ctx context.Context, req *v1.CreateOrganizationRequest) (*v1.Organization, error)
func (*OrganizationRepo) Delete ¶
func (r *OrganizationRepo) Delete(ctx context.Context, req *v1.DeleteOrganizationRequest) (bool, error)
func (*OrganizationRepo) Get ¶
func (r *OrganizationRepo) Get(ctx context.Context, req *v1.GetOrganizationRequest) (*v1.Organization, error)
func (*OrganizationRepo) List ¶
func (r *OrganizationRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListOrganizationResponse, error)
func (*OrganizationRepo) Update ¶
func (r *OrganizationRepo) Update(ctx context.Context, req *v1.UpdateOrganizationRequest) (*v1.Organization, error)
type PositionRepo ¶
type PositionRepo struct {
// contains filtered or unexported fields
}
func NewPositionRepo ¶
func NewPositionRepo(data *Data, logger log.Logger) *PositionRepo
func (*PositionRepo) Create ¶
func (r *PositionRepo) Create(ctx context.Context, req *v1.CreatePositionRequest) (*v1.Position, error)
func (*PositionRepo) Delete ¶
func (r *PositionRepo) Delete(ctx context.Context, req *v1.DeletePositionRequest) (bool, error)
func (*PositionRepo) Get ¶
func (r *PositionRepo) Get(ctx context.Context, req *v1.GetPositionRequest) (*v1.Position, error)
func (*PositionRepo) List ¶
func (r *PositionRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListPositionResponse, error)
func (*PositionRepo) Update ¶
func (r *PositionRepo) Update(ctx context.Context, req *v1.UpdatePositionRequest) (*v1.Position, error)
type RoleRepo ¶
type RoleRepo struct {
// contains filtered or unexported fields
}
func NewRoleRepo ¶
func (*RoleRepo) List ¶
func (r *RoleRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListRoleResponse, error)
type UserRepo ¶
type UserRepo struct {
// contains filtered or unexported fields
}
func NewUserRepo ¶
func (*UserRepo) GetUserByUserName ¶
func (*UserRepo) List ¶
func (r *UserRepo) List(ctx context.Context, req *pagination.PagingRequest) (*v1.ListUserResponse, error)
func (*UserRepo) UserExists ¶
func (r *UserRepo) UserExists(ctx context.Context, req *v1.UserExistsRequest) (*v1.UserExistsResponse, error)
func (*UserRepo) VerifyPassword ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.