Documentation ¶
Index ¶
- type Object
- type ObjectRule
- type PageObjectRequest
- type Repo
- type UseCase
- func (u *UseCase) AddObject(ctx kratosx.Context, object *Object) (uint32, error)
- func (u *UseCase) DeleteObject(ctx kratosx.Context, id uint32) error
- func (u *UseCase) GetObjectById(ctx kratosx.Context, id uint32) (*Object, error)
- func (u *UseCase) GetObjectByKeyword(ctx kratosx.Context, keyword string) (*Object, error)
- func (u *UseCase) PageObject(ctx kratosx.Context, req *PageObjectRequest) ([]*Object, uint32, error)
- func (u *UseCase) UpdateObject(ctx kratosx.Context, object *Object) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ObjectRule ¶
type PageObjectRequest ¶
type Repo ¶
type Repo interface { GetObjectById(ctx kratosx.Context, id uint32) (*Object, error) GetObjectByKeyword(ctx kratosx.Context, keyword string) (*Object, error) PageObject(ctx kratosx.Context, req *PageObjectRequest) ([]*Object, uint32, error) AddObject(ctx kratosx.Context, c *Object) (uint32, error) UpdateObject(ctx kratosx.Context, c *Object) error DeleteObject(ctx kratosx.Context, uint322 uint32) error }
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func (*UseCase) DeleteObject ¶
DeleteObject 删除登录资源对象信息
func (*UseCase) GetObjectById ¶
GetObjectById 获取指定资源对象
func (*UseCase) GetObjectByKeyword ¶
GetObjectByKeyword 获取指定资源对象
func (*UseCase) PageObject ¶
func (u *UseCase) PageObject(ctx kratosx.Context, req *PageObjectRequest) ([]*Object, uint32, error)
PageObject 获取全部登录资源对象
Click to show internal directories.
Click to hide internal directories.