Documentation ¶
Index ¶
- type Env
- type ListEnvRequest
- type Repo
- type UseCase
- func (u *UseCase) CreateEnv(ctx kratosx.Context, req *Env) (uint32, error)
- func (u *UseCase) DeleteEnv(ctx kratosx.Context, id uint32) error
- func (u *UseCase) GetEnvToken(ctx kratosx.Context, id uint32) (string, error)
- func (u *UseCase) ListEnv(ctx kratosx.Context, req *ListEnvRequest) ([]*Env, uint32, error)
- func (u *UseCase) UpdateEnv(ctx kratosx.Context, req *Env) error
- func (u *UseCase) UpdateEnvStatus(ctx kratosx.Context, id uint32, status bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ListEnvRequest ¶ added in v1.0.35
type Repo ¶
type Repo interface { // GetEnv 获取指定的环境信息 GetEnv(ctx kratosx.Context, id uint32) (*Env, error) // ListEnv 获取环境信息列表 ListEnv(ctx kratosx.Context, req *ListEnvRequest) ([]*Env, uint32, error) // CreateEnv 创建环境信息 CreateEnv(ctx kratosx.Context, req *Env) (uint32, error) // UpdateEnv 更新环境信息 UpdateEnv(ctx kratosx.Context, req *Env) error // DeleteEnv 删除环境信息 DeleteEnv(ctx kratosx.Context, ids uint32) error // GetEnvByKeyword 获取指定的环境信息 GetEnvByKeyword(ctx kratosx.Context, keyword string) (*Env, error) // UpdateEnvStatus 更新环境信息状态 UpdateEnvStatus(ctx kratosx.Context, id uint32, status bool) error }
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func (*UseCase) GetEnvToken ¶ added in v1.0.41
GetEnvToken 获取环境token
Click to show internal directories.
Click to hide internal directories.