Documentation
¶
Index ¶
- type AssignmentsHistoryRequest
- type AssignmentsHistoryResponse
- type AssignmentsListRequest
- type AssignmentsListResponse
- type AssignmentsUpdateRequest
- type AssignmentsUpdateResponse
- type Handler
- type Service
- func (s *Service) History(ctx context.Context, req *AssignmentsHistoryRequest) (*AssignmentsHistoryResponse, error)
- func (s *Service) List(ctx context.Context, req *AssignmentsListRequest) (*AssignmentsListResponse, error)
- func (s *Service) Update(ctx context.Context, req *AssignmentsUpdateRequest) (*AssignmentsUpdateResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AssignmentsHistoryRequest ¶
type AssignmentsHistoryRequest struct {
Page int `form:"page"`
PageSize int `form:"pageSize"`
GameId string `form:"game_id"`
Env string `form:"env"`
Action string `form:"action"`
}
AssignmentsHistoryRequest represents a request to list assignment history
type AssignmentsHistoryResponse ¶
type AssignmentsHistoryResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
AssignmentsHistoryResponse represents the response for listing assignment history
type AssignmentsListRequest ¶
type AssignmentsListRequest struct {
Page int `form:"page"`
PageSize int `form:"pageSize"`
GameId string `form:"game_id"`
Env string `form:"env"`
}
AssignmentsListRequest represents a request to list assignments
type AssignmentsListResponse ¶
type AssignmentsListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
AssignmentsListResponse represents the response for listing assignments
type AssignmentsUpdateRequest ¶
type AssignmentsUpdateRequest struct {
GameId string `json:"game_id"`
Env string `json:"env"`
Action string `json:"action"` // assign/clone/remove
Functions []string `json:"functions"`
}
AssignmentsUpdateRequest represents a request to update assignments
type AssignmentsUpdateResponse ¶
type AssignmentsUpdateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
AssignmentsUpdateResponse represents the response for updating assignments
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(svcCtx *svc.ServiceContext) *Service
func (*Service) History ¶
func (s *Service) History(ctx context.Context, req *AssignmentsHistoryRequest) (*AssignmentsHistoryResponse, error)
History returns the history of assignments
func (*Service) List ¶
func (s *Service) List(ctx context.Context, req *AssignmentsListRequest) (*AssignmentsListResponse, error)
List returns the list of assignments
func (*Service) Update ¶
func (s *Service) Update(ctx context.Context, req *AssignmentsUpdateRequest) (*AssignmentsUpdateResponse, error)
Update updates assignments
Click to show internal directories.
Click to hide internal directories.