Documentation ¶
Index ¶
- type Business
- type BusinessValue
- type PageBusinessRequest
- type Repo
- type UseCase
- func (u *UseCase) AddBusiness(ctx kratosx.Context, business *Business) (uint32, error)
- func (u *UseCase) DeleteBusiness(ctx kratosx.Context, id uint32) error
- func (u *UseCase) GetBusiness(ctx kratosx.Context, id uint32) (*Business, error)
- func (u *UseCase) GetBusinessByKeyword(ctx kratosx.Context, keyword string) (*Business, error)
- func (u *UseCase) GetBusinessValues(ctx kratosx.Context, bid uint32) ([]*BusinessValue, error)
- func (u *UseCase) PageBusiness(ctx kratosx.Context, req *PageBusinessRequest) ([]*Business, uint32, error)
- func (u *UseCase) UpdateBusiness(ctx kratosx.Context, business *Business) error
- func (u *UseCase) UpdateBusinessValue(ctx kratosx.Context, rv *BusinessValue) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BusinessValue ¶
type PageBusinessRequest ¶
type Repo ¶
type Repo interface { GetBusiness(ctx kratosx.Context, id uint32) (*Business, error) GetBusinessByKeyword(ctx kratosx.Context, key string) (*Business, error) PageBusiness(ctx kratosx.Context, req *PageBusinessRequest) ([]*Business, uint32, error) // AllBusiness(ctx kratosx.Context, id uint32) ([]*Business, error) AddBusiness(ctx kratosx.Context, c *Business) (uint32, error) UpdateBusiness(ctx kratosx.Context, c *Business) error DeleteBusiness(ctx kratosx.Context, uint322 uint32) error GetBusinessValues(ctx kratosx.Context, bid uint32) ([]*BusinessValue, error) UpdateBusinessValue(ctx kratosx.Context, rvs *BusinessValue) error CheckBusinessValue(ctx kratosx.Context, id uint32, value string) bool AllBusinessField(ctx kratosx.Context, sid uint32) ([]string, error) AllBusinessValue(ctx kratosx.Context, eid, sid uint32) ([]*BusinessValue, error) }
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func (*UseCase) AddBusiness ¶
AddBusiness 添加业务变量信息
func (*UseCase) DeleteBusiness ¶
DeleteBusiness 删除业务变量信息
func (*UseCase) GetBusiness ¶
GetBusiness 获取指定业务变量信息
func (*UseCase) GetBusinessByKeyword ¶
GetBusinessByKeyword 获取指定标识的业务变量信息
func (*UseCase) GetBusinessValues ¶
GetBusinessValues 获取指定业务变量的所有环境值
func (*UseCase) PageBusiness ¶
func (u *UseCase) PageBusiness(ctx kratosx.Context, req *PageBusinessRequest) ([]*Business, uint32, error)
PageBusiness 获取指定服务的业务变量
func (*UseCase) UpdateBusiness ¶
UpdateBusiness 更新业务变量信息
func (*UseCase) UpdateBusinessValue ¶
func (u *UseCase) UpdateBusinessValue(ctx kratosx.Context, rv *BusinessValue) error
UpdateBusinessValue 更新指定业务变量的值
Click to show internal directories.
Click to hide internal directories.