Documentation ¶
Index ¶
- type GetJobRequest
- type Job
- type ListJobRequest
- type Repo
- type UseCase
- func (u *UseCase) CreateJob(ctx kratosx.Context, req *Job) (uint32, error)
- func (u *UseCase) DeleteJob(ctx kratosx.Context, ids []uint32) (uint32, error)
- func (u *UseCase) GetJob(ctx kratosx.Context, req *GetJobRequest) (*Job, error)
- func (u *UseCase) ListJob(ctx kratosx.Context, req *ListJobRequest) ([]*Job, uint32, error)
- func (u *UseCase) UpdateJob(ctx kratosx.Context, req *Job) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GetJobRequest ¶ added in v1.0.15
type ListJobRequest ¶ added in v1.0.15
type Repo ¶
type Repo interface { // ListJob 获取职位信息列表 ListJob(ctx kratosx.Context, req *ListJobRequest) ([]*Job, uint32, error) // CreateJob 创建职位信息 CreateJob(ctx kratosx.Context, req *Job) (uint32, error) // UpdateJob 更新职位信息 UpdateJob(ctx kratosx.Context, req *Job) error // DeleteJob 删除职位信息 DeleteJob(ctx kratosx.Context, ids []uint32) (uint32, error) // GetJob 获取指定的职位信息 GetJob(ctx kratosx.Context, id uint32) (*Job, error) // GetJobByKeyword 获取指定的职位信息 GetJobByKeyword(ctx kratosx.Context, keyword string) (*Job, error) }
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.