assignment

package
v0.1.10 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 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 {
	Items    []assignmentHistoryEntry `json:"items"`
	Total    int                      `json:"total"`
	Page     int                      `json:"page"`
	PageSize int                      `json:"pageSize"`
}

AssignmentsHistoryResponse represents the canonical history list response.

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 {
	Assignments map[string][]string `json:"assignments"`
	Total       int                 `json:"total"`
	Page        int                 `json:"page"`
	PageSize    int                 `json:"pageSize"`
}

AssignmentsListResponse represents the canonical list response for 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 {
	OK          bool                `json:"ok"`
	Unknown     []string            `json:"unknown,omitempty"`
	Assignments map[string][]string `json:"assignments,omitempty"`
}

AssignmentsUpdateResponse represents the canonical update response.

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