Documentation ¶
Index ¶
- type ListServerRequest
- type Repo
- type Server
- type UseCase
- func (u *UseCase) CreateServer(ctx kratosx.Context, req *Server) (uint32, error)
- func (u *UseCase) DeleteServer(ctx kratosx.Context, id uint32) error
- func (u *UseCase) ListServer(ctx kratosx.Context, req *ListServerRequest) ([]*Server, uint32, error)
- func (u *UseCase) UpdateServer(ctx kratosx.Context, req *Server) error
- func (u *UseCase) UpdateServerStatus(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 ListServerRequest ¶ added in v1.0.35
type Repo ¶
type Repo interface { // GetServer 获取指定的服务信息 GetServer(ctx kratosx.Context, id uint32) (*Server, error) // ListServer 获取服务信息列表 ListServer(ctx kratosx.Context, req *ListServerRequest) ([]*Server, uint32, error) // CreateServer 创建服务信息 CreateServer(ctx kratosx.Context, req *Server) (uint32, error) // UpdateServer 更新服务信息 UpdateServer(ctx kratosx.Context, req *Server) error // DeleteServer 删除服务信息 DeleteServer(ctx kratosx.Context, id uint32) error // GetServerByKeyword 获取指定的服务信息 GetServerByKeyword(ctx kratosx.Context, keyword string) (*Server, error) // UpdateServerStatus 更新服务信息状态 UpdateServerStatus(ctx kratosx.Context, id uint32, status bool) error }
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func (*UseCase) CreateServer ¶ added in v1.0.35
CreateServer 创建服务信息
func (*UseCase) DeleteServer ¶
DeleteServer 删除服务信息
func (*UseCase) ListServer ¶ added in v1.0.35
func (u *UseCase) ListServer(ctx kratosx.Context, req *ListServerRequest) ([]*Server, uint32, error)
ListServer 获取服务信息列表
func (*UseCase) UpdateServer ¶
UpdateServer 更新服务信息
Click to show internal directories.
Click to hide internal directories.