assignment

package
v0.1.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

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

func NewHandler(service *Service) *Handler

func (*Handler) History

func (h *Handler) History(c *gin.Context)

History handles the request to list assignment history

func (*Handler) List

func (h *Handler) List(c *gin.Context)

List handles the request to list assignments

func (*Handler) Update

func (h *Handler) Update(c *gin.Context)

Update handles the request to update assignments

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(svcCtx *svc.ServiceContext) *Service

func (*Service) History

History returns the history of assignments

func (*Service) List

List returns the list of assignments

func (*Service) Update

Update updates assignments

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL