Documentation ¶
Index ¶
- type Job
- type PageJobRequest
- type Repo
- type UseCase
- func (u *UseCase) AddJob(ctx kratosx.Context, object *Job) (uint32, error)
- func (u *UseCase) DeleteJob(ctx kratosx.Context, id uint32) error
- func (u *UseCase) GetJobById(ctx kratosx.Context, id uint32) (*Job, error)
- func (u *UseCase) GetJobByKeyword(ctx kratosx.Context, keyword string) (*Job, error)
- func (u *UseCase) PageJob(ctx kratosx.Context, req *PageJobRequest) ([]*Job, uint32, error)
- func (u *UseCase) UpdateJob(ctx kratosx.Context, object *Job) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PageJobRequest ¶
type Repo ¶
type Repo interface { GetJobById(ctx kratosx.Context, id uint32) (*Job, error) GetJobByKeyword(ctx kratosx.Context, keyword string) (*Job, error) PageJob(ctx kratosx.Context, in *PageJobRequest) ([]*Job, uint32, error) AddJob(ctx kratosx.Context, in *Job) (uint32, error) UpdateJob(ctx kratosx.Context, in *Job) error DeleteJob(ctx kratosx.Context, id uint32) error }
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func (*UseCase) GetJobById ¶
GetJobById 获取指定资源对象
func (*UseCase) GetJobByKeyword ¶
GetJobByKeyword 获取指定资源对象
Click to show internal directories.
Click to hide internal directories.