Documentation ¶
Index ¶
- type Env
- type Repo
- type UseCase
- func (e *UseCase) AddEnv(ctx kratosx.Context, env *Env) (uint32, error)
- func (e *UseCase) AllEnv(ctx kratosx.Context) ([]*Env, error)
- func (e *UseCase) DeleteEnv(ctx kratosx.Context, id uint32) error
- func (e *UseCase) GetEnv(ctx kratosx.Context, id uint32) (*Env, error)
- func (e *UseCase) GetEnvByKeyword(ctx kratosx.Context, keyword string) (*Env, error)
- func (e *UseCase) GetEnvByToken(ctx kratosx.Context, token string) (*Env, error)
- func (e *UseCase) ResetEnvToken(ctx kratosx.Context, id uint32) (string, error)
- func (e *UseCase) UpdateEnv(ctx kratosx.Context, env *Env) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo interface { GetEnv(ctx kratosx.Context, id uint32) (*Env, error) GetEnvByKeyword(ctx kratosx.Context, keyword string) (*Env, error) GetEnvByToken(ctx kratosx.Context, keyword string) (*Env, error) // GetEnvByIds(ctx kratosx.Context, ids []uint32) ([]*Env, error) AllEnv(ctx kratosx.Context, scope ...string) ([]*Env, error) AddEnv(ctx kratosx.Context, c *Env) (uint32, error) UpdateEnv(ctx kratosx.Context, c *Env) error DeleteEnv(ctx kratosx.Context, uint322 uint32) error }
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func (*UseCase) GetEnvByKeyword ¶
GetEnvByKeyword 通过关键词查找指定环境
func (*UseCase) GetEnvByToken ¶
GetEnvByToken 通过token查找指定环境
func (*UseCase) ResetEnvToken ¶
ResetEnvToken 重置环境token
Click to show internal directories.
Click to hide internal directories.