- route definition
- Url: /api/v1/assignments
- Method: GET
- Request:
AssignmentsListRequest - Response:
AssignmentsListResponse
- request definition
type AssignmentsListRequest struct {
Page int `form:"page,optional"`
PageSize int `form:"pageSize,optional"`
GameId string `form:"game_id,optional"`
Env string `form:"env,optional"`
}
- response definition
type AssignmentsListResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}
- route definition
- Url: /api/v1/assignments
- Method: PUT
- Request:
AssignmentsUpdateRequest - Response:
AssignmentsUpdateResponse
- request definition
type AssignmentsUpdateRequest struct {
GameId string `json:"game_id"`
Env string `json:"env,optional"`
Functions []string `json:"functions"`
}
- response definition
type AssignmentsUpdateResponse struct {
Code int `json:"code"`
Message string `json:"message"`
Data interface{} `json:"data,omitempty"`
}