Documentation ¶
Index ¶
- type PageServerRequest
- type Repo
- type Server
- type UseCase
- func (s *UseCase) AddServer(ctx kratosx.Context, server *Server) (uint32, error)
- func (s *UseCase) DeleteServer(ctx kratosx.Context, id uint32) error
- func (s *UseCase) GetServer(ctx kratosx.Context, id uint32) (*Server, error)
- func (s *UseCase) GetServerByKeyword(ctx kratosx.Context, keyword string) (*Server, error)
- func (s *UseCase) PageServer(ctx kratosx.Context, req *PageServerRequest) ([]*Server, uint32, error)
- func (s *UseCase) UpdateServer(ctx kratosx.Context, server *Server) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PageServerRequest ¶
type Repo ¶
type Repo interface { GetServer(ctx kratosx.Context, id uint32) (*Server, error) GetServerByKeyword(ctx kratosx.Context, key string) (*Server, error) PageServer(ctx kratosx.Context, req *PageServerRequest) ([]*Server, uint32, error) AddServer(ctx kratosx.Context, c *Server) (uint32, error) UpdateServer(ctx kratosx.Context, c *Server) error DeleteServer(ctx kratosx.Context, uint322 uint32) error }
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
func (*UseCase) DeleteServer ¶
DeleteServer 删除服务信息
func (*UseCase) GetServerByKeyword ¶
GetServerByKeyword 获取指定标识的服务信息
func (*UseCase) PageServer ¶
func (s *UseCase) PageServer(ctx kratosx.Context, req *PageServerRequest) ([]*Server, uint32, error)
PageServer 获取分页服务信息
Click to show internal directories.
Click to hide internal directories.