types

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Admin

type Admin struct {
	Id        int64    `json:"id"`
	Username  string   `json:"username"`
	Nickname  string   `json:"nickname"`
	Email     string   `json:"email"`
	Phone     string   `json:"phone"`
	Roles     []string `json:"roles"`
	Status    int      `json:"status"` // 1:active 0:disabled
	CreatedAt string   `json:"createdAt"`
	UpdatedAt string   `json:"updatedAt"`
}

type AdminCreateRequest

type AdminCreateRequest struct {
	Username string   `json:"username"`
	Password string   `json:"password"`
	Nickname string   `json:"nickname,optional"`
	Email    string   `json:"email,optional"`
	Phone    string   `json:"phone,optional"`
	Roles    []string `json:"roles"`
}

type AdminCreateResponse

type AdminCreateResponse struct {
	Admin
}

type AdminDeleteRequest

type AdminDeleteRequest struct {
	ID string `path:"id"`
}

type AdminDeleteResponse

type AdminDeleteResponse struct {
	Message string `json:"message"`
}

type AdminDetailRequest

type AdminDetailRequest struct {
	ID string `path:"id"`
}

type AdminDetailResponse

type AdminDetailResponse struct {
	Admin
}

type AdminGame

type AdminGame struct {
	GameId   string   `json:"gameId"`
	GameName string   `json:"gameName,optional"`
	Envs     []string `json:"envs"`
}

type AdminGamesRequest

type AdminGamesRequest struct {
	ID string `path:"id"`
}

type AdminGamesResponse

type AdminGamesResponse struct {
	Games []AdminGame `json:"games"`
}

type AdminGamesUpdateRequest

type AdminGamesUpdateRequest struct {
	ID    string      `path:"id"`
	Games []AdminGame `json:"games"`
}

type AdminPasswordResetRequest

type AdminPasswordResetRequest struct {
	ID          string `path:"id"`
	NewPassword string `json:"newPassword"`
}

type AdminPasswordResetResponse

type AdminPasswordResetResponse struct {
	Message string `json:"message"`
}

type AdminUpdateRequest

type AdminUpdateRequest struct {
	ID       string   `path:"id"`
	Nickname string   `json:"nickname,optional"`
	Email    string   `json:"email,optional"`
	Phone    string   `json:"phone,optional"`
	Roles    []string `json:"roles,optional"`
	Status   int      `json:"status,optional"`
}

type AdminUpdateResponse

type AdminUpdateResponse struct {
	Admin
}

type AdminsListRequest

type AdminsListRequest struct {
	Page     int    `form:"page,optional,default=1"`
	PageSize int    `form:"pageSize,optional,default=20"`
	Search   string `form:"search,optional"`
	Role     string `form:"role,optional"`
	Status   int    `form:"status,optional"`
}

type AdminsListResponse

type AdminsListResponse struct {
	Items []Admin `json:"items"`
	Total int64   `json:"total"`
	Page  int     `json:"page"`
	Size  int     `json:"pageSize"`
}

type AgentAnalyticsFiltersResponse

type AgentAnalyticsFiltersResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type AgentMetaReportRequest

type AgentMetaReportRequest struct {
}

type AgentMetaResponse

type AgentMetaResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type Alert

type Alert struct {
	Id        string      `json:"id"`
	Type      string      `json:"type"`
	Level     string      `json:"level"`
	Message   string      `json:"message"`
	Source    string      `json:"source"`
	Status    string      `json:"status"`
	Details   interface{} `json:"details"`
	CreatedAt string      `json:"createdAt"`
}

type AlertSilenceRequest

type AlertSilenceRequest struct {
	ID       string `path:"id"`
	Duration int    `json:"duration"` // 分钟
	Reason   string `json:"reason,optional"`
}

type AlertsListRequest

type AlertsListRequest struct {
	Page     int    `form:"page,optional,default=1"`
	PageSize int    `form:"pageSize,optional,default=20"`
	Level    string `form:"level,optional"`
	Status   string `form:"status,optional"`
}

type AlertsListResponse

type AlertsListResponse struct {
	Items []Alert `json:"items"`
	Total int64   `json:"total"`
	Page  int     `json:"page"`
	Size  int     `json:"pageSize"`
}

type AnalyticsFilters

type AnalyticsFilters struct {
	GameId  string      `json:"gameId"`
	Filters interface{} `json:"filters"`
}

type AnalyticsFiltersQuery

type AnalyticsFiltersQuery struct {
}

type AnalyticsQuery

type AnalyticsQuery struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
}

type ApprovalApproveRequest

type ApprovalApproveRequest struct {
	ID string `path:"id"` // 审批ID
}

type ApprovalApproveResponse

type ApprovalApproveResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ApprovalGetRequest

type ApprovalGetRequest struct {
	ID string `path:"id"` // 审批ID
}

type ApprovalGetResponse

type ApprovalGetResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ApprovalRejectRequest

type ApprovalRejectRequest struct {
	ID     string `path:"id"`     // 审批ID
	Reason string `json:"reason"` // 拒绝原因
}

type ApprovalRejectResponse

type ApprovalRejectResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ApprovalsListRequest

type ApprovalsListRequest struct {
	Page     int    `form:"page,optional"`     // 页码
	PageSize int    `form:"pageSize,optional"` // 每页数量
	Status   string `form:"status,optional"`   // 状态过滤
}

type ApprovalsListResponse

type ApprovalsListResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type AssignmentsListRequest

type AssignmentsListRequest struct {
	Page     int    `form:"page,optional"`
	PageSize int    `form:"pageSize,optional"`
	GameId   string `form:"game_id,optional"`
	Env      string `form:"env,optional"`
}

type AssignmentsListResponse

type AssignmentsListResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type AssignmentsUpdateRequest

type AssignmentsUpdateRequest struct {
	GameId    string   `json:"game_id"`
	Env       string   `json:"env,optional"`
	Functions []string `json:"functions"`
}

type AssignmentsUpdateResponse

type AssignmentsUpdateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type AuditRequest

type AuditRequest struct {
	Page     int    `form:"page,optional"`     // 页码
	PageSize int    `form:"pageSize,optional"` // 每页数量
	Action   string `form:"action,optional"`   // 操作类型过滤
	UserID   string `form:"userId,optional"`   // 用户ID过滤
}

type AuditResponse

type AuditResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type Backup

type Backup struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	Size      int64  `json:"size"`
	Type      string `json:"type"`
	Status    string `json:"status"`
	CreatedAt string `json:"createdAt"`
}

type BackupCreateRequest

type BackupCreateRequest struct {
	Name string `json:"name,optional"`
	Type string `json:"type,optional"` // full, incremental
}

type BackupDeleteRequest

type BackupDeleteRequest struct {
	ID string `path:"id"`
}

type BackupDetailResponse

type BackupDetailResponse struct {
	Backup
}

type BackupDownloadRequest

type BackupDownloadRequest struct {
	ID string `path:"id"`
}

type BackupsListRequest

type BackupsListRequest struct {
	Page     int    `form:"page,optional,default=1"`
	PageSize int    `form:"pageSize,optional,default=20"`
	Type     string `form:"type,optional"`
}

type BackupsListResponse

type BackupsListResponse struct {
	Items []Backup `json:"items"`
	Total int64    `json:"total"`
	Page  int      `json:"page"`
	Size  int      `json:"pageSize"`
}

type BatchCopyFunctionsRequest

type BatchCopyFunctionsRequest struct {
	FunctionIds []string `json:"function_ids"`
}

type BatchCopyFunctionsResponse

type BatchCopyFunctionsResponse struct {
	Updated int      `json:"updated"`
	Failed  []string `json:"failed"`
	Copied  []string `json:"copied"` // 新复制的函数ID列表
}

type BatchDeleteFunctionsRequest

type BatchDeleteFunctionsRequest struct {
	FunctionIds []string `json:"function_ids"`
}

type BatchDeleteFunctionsResponse

type BatchDeleteFunctionsResponse struct {
	Updated int      `json:"updated"`
	Failed  []string `json:"failed"`
}

type BatchDeleteObjectsData added in v0.1.2

type BatchDeleteObjectsData struct {
	Deleted []string `json:"deleted"`
	Failed  []string `json:"failed,optional"`
}

type BatchDeleteObjectsRequest added in v0.1.2

type BatchDeleteObjectsRequest struct {
	Keys []string `json:"keys"`
}

type BatchDeleteObjectsResponse added in v0.1.2

type BatchDeleteObjectsResponse struct {
	Code    int                    `json:"code"`
	Message string                 `json:"message"`
	Data    BatchDeleteObjectsData `json:"data"`
}

type BatchUpdateFunctionsRequest

type BatchUpdateFunctionsRequest struct {
	FunctionIds []string `json:"function_ids"`
	Enabled     bool     `json:"enabled"`
}

type BatchUpdateFunctionsResponse

type BatchUpdateFunctionsResponse struct {
	Updated int      `json:"updated"`
	Failed  []string `json:"failed"`
}

type BehaviorAdoptionBreakdownRequest

type BehaviorAdoptionBreakdownRequest struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	Feature   string `form:"feature"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
}

type BehaviorAdoptionBreakdownResponse

type BehaviorAdoptionBreakdownResponse struct {
	BySegment interface{} `json:"bySegment"`
	ByTime    interface{} `json:"byTime"`
}

type BehaviorAdoptionRequest

type BehaviorAdoptionRequest struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	Feature   string `form:"feature,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
}

type BehaviorAdoptionResponse

type BehaviorAdoptionResponse struct {
	Features []FeatureAdoption `json:"features"`
}

type BehaviorEvent

type BehaviorEvent struct {
	EventType string      `json:"eventType"`
	UserId    string      `json:"userId"`
	Data      interface{} `json:"data"`
	Timestamp string      `json:"timestamp"`
}

type BehaviorEventsRequest

type BehaviorEventsRequest struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	EventType string `form:"eventType,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
	Limit     int    `form:"limit,optional,default=100"`
}

type BehaviorEventsResponse

type BehaviorEventsResponse struct {
	Items []BehaviorEvent `json:"items"`
	Total int64           `json:"total"`
}

type BehaviorFunnelRequest

type BehaviorFunnelRequest struct {
	GameId    string   `form:"gameId,optional"`
	Env       string   `form:"env,optional"`
	Steps     []string `json:"steps"`
	StartDate string   `form:"startDate,optional"`
	EndDate   string   `form:"endDate,optional"`
}

type BehaviorFunnelResponse

type BehaviorFunnelResponse struct {
	Steps []FunnelStep `json:"steps"`
}

type BehaviorPathsRequest

type BehaviorPathsRequest struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
	Depth     int    `form:"depth,optional,default=5"`
}

type BehaviorPathsResponse

type BehaviorPathsResponse struct {
	Paths interface{} `json:"paths"`
}

type BehaviorRequest

type BehaviorRequest struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
}

type BehaviorResponse

type BehaviorResponse struct {
	TopActions interface{} `json:"topActions"`
	UserFlows  interface{} `json:"userFlows"`
	HeatMap    interface{} `json:"heatMap"`
}

type CallPlatformRequest

type CallPlatformRequest struct {
	Platform string `json:"platform"` // 平台名称,如 "quicksdk"
	Method   string `json:"method"`   // API 方法名
	Request  string `json:"request"`  // 请求参数(JSON 字符串格式)
}

type CallPlatformResponse

type CallPlatformResponse struct {
	Code     int         `json:"code"`
	Message  string      `json:"message"`
	Response interface{} `json:"response,omitempty"` // 平台返回的响应
}

type CertificateAddRequest

type CertificateAddRequest struct {
	Domain      string `json:"domain"`
	Certificate string `json:"certificate,optional"`
	PrivateKey  string `json:"privateKey,optional"`
}

type CertificateAddResponse

type CertificateAddResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type CertificateAlertAddRequest

type CertificateAlertAddRequest struct {
	Domain    string `json:"domain"`
	Threshold int    `json:"threshold,optional"`
}

type CertificateAlertAddResponse

type CertificateAlertAddResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type CertificateAlertsListRequest

type CertificateAlertsListRequest struct {
	Page     int `form:"page,optional"`
	PageSize int `form:"pageSize,optional"`
}

type CertificateAlertsListResponse

type CertificateAlertsListResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type CertificateCheckAllRequest

type CertificateCheckAllRequest struct {
}

type CertificateCheckAllResponse

type CertificateCheckAllResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type CertificateCheckRequest

type CertificateCheckRequest struct {
	ID string `path:"id"`
}

type CertificateCheckResponse

type CertificateCheckResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type CertificateDeleteRequest

type CertificateDeleteRequest struct {
	ID string `path:"id"`
}

type CertificateDeleteResponse

type CertificateDeleteResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type CertificateDetailRequest

type CertificateDetailRequest struct {
	ID string `path:"id"`
}

type CertificateDetailResponse

type CertificateDetailResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type CertificateDomainInfoRequest

type CertificateDomainInfoRequest struct {
	Domain string `form:"domain"`
}

type CertificateDomainInfoResponse

type CertificateDomainInfoResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type CertificateExpiringRequest

type CertificateExpiringRequest struct {
	Days int `form:"days,optional"`
}

type CertificateExpiringResponse

type CertificateExpiringResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type CertificateStatsRequest

type CertificateStatsRequest struct {
}

type CertificateStatsResponse

type CertificateStatsResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type CertificatesListRequest

type CertificatesListRequest struct {
	Page     int    `form:"page,optional"`
	PageSize int    `form:"pageSize,optional"`
	Status   string `form:"status,optional"`
}

type CertificatesListResponse

type CertificatesListResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type Comment

type Comment struct {
	Id        int64  `json:"id"`
	Content   string `json:"content"`
	Author    string `json:"author"`
	CreatedAt string `json:"createdAt"`
}

type ComponentActionRequest

type ComponentActionRequest struct {
	ID string `path:"id"`
}

type ComponentDetailRequest

type ComponentDetailRequest struct {
	ID string `path:"id"`
}

type ComponentPatchRequest

type ComponentPatchRequest struct {
	ID    string      `path:"id"`
	Patch interface{} `json:"patch"`
}

type ComponentsDeleteResponse

type ComponentsDeleteResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ComponentsDetailResponse

type ComponentsDetailResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ComponentsDisableResponse

type ComponentsDisableResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ComponentsEnableResponse

type ComponentsEnableResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ComponentsInstallRequest

type ComponentsInstallRequest struct {
	Name    string `json:"name"`
	Version string `json:"version,optional"`
}

type ComponentsInstallResponse

type ComponentsInstallResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ComponentsListRequest

type ComponentsListRequest struct {
	Page     int `form:"page,optional"`
	PageSize int `form:"pageSize,optional"`
}

type ComponentsListResponse

type ComponentsListResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ComponentsPatchResponse

type ComponentsPatchResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ConfigUpsertRequest

type ConfigUpsertRequest struct {
	Key   string `json:"key"`   // 配置键
	Value string `json:"value"` // 配置值
}

type ConfigUpsertResponse

type ConfigUpsertResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ConfigVersionDetailRequest

type ConfigVersionDetailRequest struct {
	Key     string `form:"key"`     // 配置键
	Version int    `form:"version"` // 版本号
}

type ConfigVersionDetailResponse

type ConfigVersionDetailResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ConfigVersionsRequest

type ConfigVersionsRequest struct {
	Key string `form:"key"` // 配置键
}

type ConfigVersionsResponse

type ConfigVersionsResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type CreateDirectoryRequest added in v0.1.2

type CreateDirectoryRequest struct {
	Prefix string `json:"prefix"`
}

type CreateDirectoryResponse added in v0.1.2

type CreateDirectoryResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type DeleteObjectRequest added in v0.1.2

type DeleteObjectRequest struct {
	Key string `form:"key"`
}

type DeleteObjectResponse added in v0.1.2

type DeleteObjectResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type Descriptor

type Descriptor struct {
	Id          string      `json:"id"`
	Name        string      `json:"name"`
	Description string      `json:"description"`
	Category    string      `json:"category"`
	Schema      interface{} `json:"schema"`
}

type DescriptorsRequest

type DescriptorsRequest struct {
	Type   string `form:"type,optional"`
	GameId string `form:"gameId,optional"`
}

type DescriptorsResponse

type DescriptorsResponse struct {
	Items []Descriptor `json:"items"`
}

type EntitiesListRequest

type EntitiesListRequest struct {
	Page     int    `form:"page,optional"`
	PageSize int    `form:"pageSize,optional"`
	Type     string `form:"type,optional"`
}

type EntitiesListResponse

type EntitiesListResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type EntityCreateRequest

type EntityCreateRequest struct {
	Type string      `json:"type"`
	Data interface{} `json:"data"`
}

type EntityCreateResponse

type EntityCreateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type EntityDeleteRequest

type EntityDeleteRequest struct {
	ID string `path:"id"`
}

type EntityDeleteResponse

type EntityDeleteResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type EntityDetailRequest

type EntityDetailRequest struct {
	ID string `path:"id"`
}

type EntityDetailResponse

type EntityDetailResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type EntityPreviewRequest

type EntityPreviewRequest struct {
	ID string `path:"id"`
}

type EntityPreviewResponse

type EntityPreviewResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type EntityUpdateRequest

type EntityUpdateRequest struct {
	ID   string      `path:"id"`
	Data interface{} `json:"data"`
}

type EntityUpdateResponse

type EntityUpdateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type EntityValidateRequest

type EntityValidateRequest struct {
	Type string      `json:"type"`
	Data interface{} `json:"data"`
}

type EntityValidateResponse

type EntityValidateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type EpisodeMetrics

type EpisodeMetrics struct {
	EpisodeId      string  `json:"episodeId"`
	Players        int     `json:"players"`
	CompletionRate float64 `json:"completionRate"`
	AvgProgress    float64 `json:"avgProgress"`
}

type FAQ

type FAQ struct {
	Id        int64    `json:"id"`
	Question  string   `json:"question"`
	Answer    string   `json:"answer"`
	Category  string   `json:"category"`
	Tags      []string `json:"tags"`
	Visible   bool     `json:"visible"`
	Sort      int      `json:"sort"`
	Views     int      `json:"views"`
	CreatedAt string   `json:"createdAt"`
	UpdatedAt string   `json:"updatedAt"`
}

type FAQCategoriesRequest

type FAQCategoriesRequest struct {
}

type FAQCategoriesResponse

type FAQCategoriesResponse struct {
	Items []FAQCategory `json:"items"`
}

type FAQCategory

type FAQCategory struct {
	Name  string `json:"name"`
	Count int    `json:"count"`
}

type FAQCreateRequest

type FAQCreateRequest struct {
	Question string   `json:"question"`
	Answer   string   `json:"answer"`
	Category string   `json:"category"`
	Tags     []string `json:"tags,optional"`
	Visible  bool     `json:"visible,optional,default=true"`
	Sort     int      `json:"sort,optional,default=0"`
}

type FAQDeleteRequest

type FAQDeleteRequest struct {
	ID string `path:"id"`
}

type FAQDetailResponse

type FAQDetailResponse struct {
	FAQ
}

type FAQListRequest

type FAQListRequest struct {
	Page     int    `form:"page,optional,default=1"`
	PageSize int    `form:"pageSize,optional,default=20"`
	Category string `form:"category,optional"`
	Keyword  string `form:"keyword,optional"`
	Visible  *bool  `form:"visible,optional"`
}

type FAQListResponse

type FAQListResponse struct {
	Items []FAQ `json:"items"`
	Total int64 `json:"total"`
	Page  int   `json:"page"`
	Size  int   `json:"pageSize"`
}

type FAQUpdateRequest

type FAQUpdateRequest struct {
	ID       string   `path:"id"`
	Question string   `json:"question,optional"`
	Answer   string   `json:"answer,optional"`
	Category string   `json:"category,optional"`
	Tags     []string `json:"tags,optional"`
	Visible  *bool    `json:"visible,optional"`
	Sort     *int     `json:"sort,optional"`
}

type FeatureAdoption

type FeatureAdoption struct {
	Feature      string  `json:"feature"`
	Users        int     `json:"users"`
	AdoptionRate float64 `json:"adoptionRate"`
	Frequency    float64 `json:"frequency"`
}

type Feedback

type Feedback struct {
	Id        int64  `json:"id"`
	PlayerId  string `json:"playerId"`
	Contact   string `json:"contact"`
	Content   string `json:"content"`
	Category  string `json:"category"`
	Priority  string `json:"priority"`
	Status    string `json:"status"`
	Rating    int    `json:"rating"` // 1-5星
	Attach    string `json:"attach"` // 附件URL
	GameId    string `json:"gameId"`
	Env       string `json:"env"`
	Reply     string `json:"reply"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

type FeedbackCreateRequest

type FeedbackCreateRequest struct {
	PlayerId string `json:"playerId,optional"`
	Contact  string `json:"contact"`
	Content  string `json:"content"`
	Category string `json:"category"`
	Rating   int    `json:"rating,optional"`
	Attach   string `json:"attach,optional"`
	GameId   string `json:"gameId,optional"`
	Env      string `json:"env,optional"`
}

type FeedbackDeleteRequest

type FeedbackDeleteRequest struct {
	ID string `path:"id"`
}

type FeedbackDetailResponse

type FeedbackDetailResponse struct {
	Feedback
}

type FeedbackListRequest

type FeedbackListRequest struct {
	Page     int    `form:"page,optional,default=1"`
	PageSize int    `form:"pageSize,optional,default=20"`
	Status   string `form:"status,optional"`
	Category string `form:"category,optional"`
	GameId   string `form:"gameId,optional"`
}

type FeedbackListResponse

type FeedbackListResponse struct {
	Items []Feedback `json:"items"`
	Total int64      `json:"total"`
	Page  int        `json:"page"`
	Size  int        `json:"pageSize"`
}

type FeedbackStats

type FeedbackStats struct {
	Total        int            `json:"total"`
	ByCategory   map[string]int `json:"byCategory"`
	ByStatus     map[string]int `json:"byStatus"`
	AvgRating    float64        `json:"avgRating"`
	ResponseRate float64        `json:"responseRate"`
}

type FeedbackStatsRequest

type FeedbackStatsRequest struct {
	GameId string `form:"gameId,optional"`
	Days   int    `form:"days,optional,default=7"`
}

type FeedbackStatsResponse

type FeedbackStatsResponse struct {
	FeedbackStats
}

type FeedbackUpdateRequest

type FeedbackUpdateRequest struct {
	ID       string `path:"id"`
	Status   string `json:"status,optional"`
	Priority string `json:"priority,optional"`
	Reply    string `json:"reply,optional"`
}

type FiltersGetRequest

type FiltersGetRequest struct {
	GameId string `form:"gameId,optional"`
}

type FiltersGetResponse

type FiltersGetResponse struct {
	Items []AnalyticsFilters `json:"items"`
}

type FiltersUpdateRequest

type FiltersUpdateRequest struct {
	GameId  string      `json:"gameId"`
	Filters interface{} `json:"filters"`
}

type Function

type Function struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Category    string `json:"category"`
	GameId      string `json:"gameId"`
	Status      int    `json:"status"`
	Version     string `json:"version"`
	Instances   int    `json:"instances"`
	CreatedAt   string `json:"createdAt"`
	UpdatedAt   string `json:"updatedAt"`
}

type FunctionActionRequest

type FunctionActionRequest struct {
	ID string `path:"id"`
}

type FunctionCopyRequest

type FunctionCopyRequest struct {
	ID string `path:"id"`
}

type FunctionCopyResponse

type FunctionCopyResponse struct {
	FunctionId string `json:"function_id"`
	NewId      string `json:"new_id"`
}

type FunctionDescriptor

type FunctionDescriptor struct {
	Input  interface{} `json:"input"`
	Output interface{} `json:"output"`
	Schema interface{} `json:"schema"`
}

type FunctionDetailRequest

type FunctionDetailRequest struct {
	ID string `path:"id"`
}

type FunctionDetailResponse

type FunctionDetailResponse struct {
	Function
	Descriptor FunctionDescriptor `json:"descriptor"`
}

type FunctionInstance

type FunctionInstance struct {
	AgentId   string `json:"agentId"`
	AgentName string `json:"agentName"`
	Status    string `json:"status"`
	UpdatedAt string `json:"updatedAt"`
}

type FunctionInstancesRequest

type FunctionInstancesRequest struct {
	ID string `path:"id"`
}

type FunctionInstancesResponse

type FunctionInstancesResponse struct {
	Items []FunctionInstance `json:"items"`
}

type FunctionInvokeRequest

type FunctionInvokeRequest struct {
	ID              string      `path:"id"`
	Params          interface{} `json:"params,optional"`
	Payload         interface{} `json:"payload,optional"`
	GameID          string      `json:"gameId,optional"`
	Env             string      `json:"env,optional"`
	Mode            string      `json:"mode,optional"`
	Route           string      `json:"route,optional"`
	TargetServiceID string      `json:"target_service_id,optional"`
	HashKey         string      `json:"hash_key,optional"`
}

type FunctionInvokeResponse

type FunctionInvokeResponse struct {
	JobId  string      `json:"jobId"`
	JobID  string      `json:"jobID,omitempty"`
	Result interface{} `json:"result,omitempty"`
}

type FunctionPermission

type FunctionPermission struct {
	Resource string   `json:"resource"`
	Actions  []string `json:"actions"`
	Roles    []string `json:"roles"`
}

type FunctionPermissionsRequest

type FunctionPermissionsRequest struct {
	ID string `path:"id"`
}

type FunctionPermissionsResponse

type FunctionPermissionsResponse struct {
	Items []FunctionPermission `json:"items"`
}

type FunctionPermissionsUpdateRequest

type FunctionPermissionsUpdateRequest struct {
	ID          string               `path:"id"`
	Permissions []FunctionPermission `json:"permissions"`
}

type FunctionPublishRequest

type FunctionPublishRequest struct {
	ID string `path:"id"`
}

type FunctionPublishResponse

type FunctionPublishResponse struct {
	ApprovalId string `json:"approvalId,omitempty"` // 如果需要审批
	Published  bool   `json:"published"`
}

type FunctionUIRequest

type FunctionUIRequest struct {
	ID string `path:"id"`
}

type FunctionUIResponse

type FunctionUIResponse struct {
	Schema     interface{} `json:"schema"`
	Layout     interface{} `json:"layout"`
	Components interface{} `json:"components"`
}

type FunctionUIUpdateRequest

type FunctionUIUpdateRequest struct {
	ID         string      `path:"id"`
	Schema     interface{} `json:"schema,optional"`
	Layout     interface{} `json:"layout,optional"`
	Components interface{} `json:"components,optional"`
}

type FunctionsListRequest

type FunctionsListRequest struct {
	Page     int    `form:"page,optional,default=1"`
	PageSize int    `form:"pageSize,optional,default=20"`
	GameId   string `form:"gameId,optional"`
	Category string `form:"category,optional"`
	Status   int    `form:"status,optional"`
}

type FunctionsListResponse

type FunctionsListResponse struct {
	Items []Function `json:"items"`
	Total int64      `json:"total"`
	Page  int        `json:"page"`
	Size  int        `json:"pageSize"`
}

type FunctionsPendingRequest

type FunctionsPendingRequest struct {
}

type FunctionsPendingResponse

type FunctionsPendingResponse struct {
	Items []PendingFunction `json:"items"`
}

type FunnelStep

type FunnelStep struct {
	Step           string  `json:"step"`
	Users          int     `json:"users"`
	ConversionRate float64 `json:"conversionRate"`
	DropOffRate    float64 `json:"dropOffRate"`
}

type GameCreateRequest

type GameCreateRequest struct {
	Name        string `json:"name"`
	Description string `json:"description,optional"`
	Config      string `json:"config,optional"`
}

type GameCreateResponse

type GameCreateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type GameDeleteRequest

type GameDeleteRequest struct {
	ID string `path:"id"`
}

type GameDeleteResponse

type GameDeleteResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type GameDetailRequest

type GameDetailRequest struct {
	ID string `path:"id"`
}

type GameDetailResponse

type GameDetailResponse struct {
	Code    int      `json:"code"`
	Message string   `json:"message"`
	Data    GameInfo `json:"data,omitempty"`
}

type GameEnvAddRequest

type GameEnvAddRequest struct {
	ID   string `path:"id"`
	Name string `json:"name"`
	Type string `json:"type,optional"`
}

type GameEnvAddResponse

type GameEnvAddResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type GameEnvDeleteRequest

type GameEnvDeleteRequest struct {
	ID    string `path:"id"`
	EnvID string `path:"envId"`
}

type GameEnvDeleteResponse

type GameEnvDeleteResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type GameEnvItem

type GameEnvItem struct {
	Env         string `json:"env"`
	Description string `json:"description,optional"`
	Color       string `json:"color,optional"`
}

type GameEnvUpdateRequest

type GameEnvUpdateRequest struct {
	ID    string `path:"id"`
	EnvID string `path:"envId"`
	Name  string `json:"name,optional"`
	Type  string `json:"type,optional"`
}

type GameEnvUpdateResponse

type GameEnvUpdateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type GameEnvsData

type GameEnvsData struct {
	Envs []GameEnvItem `json:"envs"`
}

type GameEnvsListRequest

type GameEnvsListRequest struct {
	ID string `path:"id"`
}

type GameEnvsListResponse

type GameEnvsListResponse struct {
	Code    int          `json:"code"`
	Message string       `json:"message"`
	Data    GameEnvsData `json:"data,omitempty"`
}

type GameInfo

type GameInfo struct {
	ID          uint          `json:"id"`
	Name        string        `json:"name"`
	Icon        string        `json:"icon,optional"`
	Description string        `json:"description,optional"`
	Enabled     bool          `json:"enabled"`
	AliasName   string        `json:"aliasName,optional"`
	Homepage    string        `json:"homepage,optional"`
	Status      string        `json:"status"`
	GameType    string        `json:"gameType,optional"`
	GenreCode   string        `json:"genreCode,optional"`
	Color       string        `json:"color,optional"`
	Envs        []GameEnvItem `json:"envs,optional"`
	CreatedAt   string        `json:"createdAt,optional"`
	UpdatedAt   string        `json:"updatedAt,optional"`
}

type GameUpdateRequest

type GameUpdateRequest struct {
	ID          string `path:"id"`
	Name        string `json:"name,optional"`
	Description string `json:"description,optional"`
	Config      string `json:"config,optional"`
	Status      string `json:"status,optional"`
}

type GameUpdateResponse

type GameUpdateResponse struct {
	Code    int      `json:"code"`
	Message string   `json:"message"`
	Data    GameInfo `json:"data,omitempty"`
}

type GamesData

type GamesData struct {
	Games []GameInfo `json:"games"`
	Total int        `json:"total,optional"`
}

type GamesListRequest

type GamesListRequest struct {
	Page     int    `form:"page,optional"`
	PageSize int    `form:"pageSize,optional"`
	Status   string `form:"status,optional"`
}

type GamesListResponse

type GamesListResponse struct {
	Code    int       `json:"code"`
	Message string    `json:"message"`
	Data    GamesData `json:"data,omitempty"`
}

type HealthzRequest

type HealthzRequest struct {
}

type HealthzResponse

type HealthzResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type IngestRequest

type IngestRequest struct {
	GameId    string      `json:"gameId"`
	Env       string      `json:"env"`
	Events    interface{} `json:"events"`
	Timestamp string      `json:"timestamp,optional"`
}

type IngestResponse

type IngestResponse struct {
	Accepted int    `json:"accepted"`
	Rejected int    `json:"rejected"`
	BatchId  string `json:"batchId"`
}

type JobCancelRequest

type JobCancelRequest struct {
	ID string `path:"id"` // 任务ID
}

type JobCancelResponse

type JobCancelResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type JobItem

type JobItem struct {
	ID         string `json:"id"`
	FunctionID string `json:"function_id,omitempty"`
	Actor      string `json:"actor,omitempty"`
	State      string `json:"state,omitempty"`
	GameID     string `json:"game_id,omitempty"`
	Env        string `json:"env,omitempty"`
	RPCAddr    string `json:"rpc_addr,omitempty"`
	StartedAt  string `json:"started_at,omitempty"`
	EndedAt    string `json:"ended_at,omitempty"`
	DurationMs int64  `json:"duration_ms,omitempty"`
	Error      string `json:"error,omitempty"`
}

type JobListRequest

type JobListRequest struct {
	Status     string `form:"status,optional"`
	FunctionID string `form:"function_id,optional"`
	Actor      string `form:"actor,optional"`
	GameID     string `form:"game_id,optional"`
	Env        string `form:"env,optional"`
	Page       int    `form:"page,optional,default=1"`
	Size       int    `form:"size,optional,default=20"`
}

type JobListResponse

type JobListResponse struct {
	Jobs  []JobItem `json:"jobs"`
	Total int       `json:"total"`
}

type JobResultRequest

type JobResultRequest struct {
	ID string `path:"id"` // 任务ID
}

type JobResultResponse

type JobResultResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type JobStartRequest

type JobStartRequest struct {
	FunctionID string      `json:"functionId"` // 函数ID
	Params     interface{} `json:"params,optional"`
}

type JobStartResponse

type JobStartResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type LevelMetrics

type LevelMetrics struct {
	LevelId        string  `json:"levelId"`
	Attempts       int     `json:"attempts"`
	Completions    int     `json:"completions"`
	CompletionRate float64 `json:"completionRate"`
	AvgDuration    float64 `json:"avgDuration"`
	AvgRetries     float64 `json:"avgRetries"`
}

type LevelsEpisodesRequest

type LevelsEpisodesRequest struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
}

type LevelsEpisodesResponse

type LevelsEpisodesResponse struct {
	Episodes []EpisodeMetrics `json:"episodes"`
}

type LevelsMapsRequest

type LevelsMapsRequest struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
}

type LevelsMapsResponse

type LevelsMapsResponse struct {
	Maps []MapMetrics `json:"maps"`
}

type LevelsRequest

type LevelsRequest struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
}

type LevelsResponse

type LevelsResponse struct {
	Levels []LevelMetrics `json:"levels"`
}

type ListObjectsRequest added in v0.1.2

type ListObjectsRequest struct {
	Prefix    string `form:"prefix,optional"`
	Marker    string `form:"marker,optional"`
	Limit     int    `form:"limit,optional"`
	Delimiter string `form:"delimiter,optional"`
}

type ListObjectsResponse added in v0.1.2

type ListObjectsResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    ObjectsData `json:"data"`
}

type ListPlatformMethodsResponse

type ListPlatformMethodsResponse struct {
	Code    int      `json:"code"`
	Message string   `json:"message"`
	Methods []string `json:"methods,omitempty"`
}

type ListPlatformsResponse

type ListPlatformsResponse struct {
	Code      int            `json:"code"`
	Message   string         `json:"message"`
	Platforms []PlatformInfo `json:"platforms,omitempty"`
}

type LoginRequest

type LoginRequest struct {
	Username string `json:"username"` // 用户名
	Password string `json:"password"` // 密码
}

type LoginResponse

type LoginResponse struct {
	Token string   `json:"token"`
	User  UserInfo `json:"user"`
}

type LogoutRequest

type LogoutRequest struct {
}

type LogoutResponse

type LogoutResponse struct {
}

type MapMetrics

type MapMetrics struct {
	MapId      string      `json:"mapId"`
	HeatMap    interface{} `json:"heatMap"`
	DeathSpots interface{} `json:"deathSpots"`
}

type MessageDetailRequest

type MessageDetailRequest struct {
	ID string `path:"id"`
}

type MessageDetailResponse

type MessageDetailResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type MessageReadRequest

type MessageReadRequest struct {
	ID string `path:"id"`
}

type MessageReadResponse

type MessageReadResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type MessageSendRequest

type MessageSendRequest struct {
	To      string      `json:"to"`
	Type    string      `json:"type"`
	Title   string      `json:"title,optional"`
	Content string      `json:"content"`
	Data    interface{} `json:"data,optional"`
}

type MessageSendResponse

type MessageSendResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type MessagesListRequest

type MessagesListRequest struct {
	Page     int    `form:"page,optional"`
	PageSize int    `form:"pageSize,optional"`
	Type     string `form:"type,optional"`
	Status   string `form:"status,optional"`
}

type MessagesListResponse

type MessagesListResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type MessagesUnreadCountRequest

type MessagesUnreadCountRequest struct {
}

type MessagesUnreadCountResponse

type MessagesUnreadCountResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type MetricsRequest

type MetricsRequest struct {
}

type MetricsResponse

type MetricsResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type Node

type Node struct {
	Id        string      `json:"id"`
	Name      string      `json:"name"`
	Type      string      `json:"type"` // server, agent, edge
	Status    string      `json:"status"`
	IP        string      `json:"ip"`
	Port      int         `json:"port"`
	Resources interface{} `json:"resources"`
	UpdatedAt string      `json:"updatedAt"`
}

type NodeActionRequest

type NodeActionRequest struct {
	ID string `path:"id"`
}

type NodeCommand

type NodeCommand struct {
	Name        string `json:"name"`
	Description string `json:"description"`
}

type NodeCommandsRequest

type NodeCommandsRequest struct {
}

type NodeCommandsResponse

type NodeCommandsResponse struct {
	Items []NodeCommand `json:"items"`
}

type NodeDrainRequest

type NodeDrainRequest struct {
	ID      string `path:"id"`
	Timeout int    `json:"timeout,optional"` // 秒
}

type NodeMetaRequest

type NodeMetaRequest struct {
	ID string `path:"id"`
}

type NodeMetaResponse

type NodeMetaResponse struct {
	Meta interface{} `json:"meta"`
}

type NodeMetaUpdateRequest

type NodeMetaUpdateRequest struct {
	ID   string      `path:"id"`
	Meta interface{} `json:"meta"`
}

type NodesListRequest

type NodesListRequest struct {
	Type   string `form:"type,optional"`
	Status string `form:"status,optional"`
}

type NodesListResponse

type NodesListResponse struct {
	Items []Node `json:"items"`
}

type ObjectInfo added in v0.1.2

type ObjectInfo struct {
	Key          string `json:"key"`
	Size         int64  `json:"size"`
	LastModified string `json:"last_modified"`
	ETag         string `json:"etag"`
	StorageClass string `json:"storage_class,optional"`
}

type ObjectsData added in v0.1.2

type ObjectsData struct {
	Objects     []ObjectInfo `json:"objects"`
	Prefixes    []string     `json:"prefixes,optional"`
	IsTruncated bool         `json:"is_truncated"`
	NextMarker  string       `json:"next_marker,optional"`
}

type OpsAgentInfo

type OpsAgentInfo struct {
	AgentID   string            `json:"agentId"`
	GameID    string            `json:"gameId"`
	Env       string            `json:"env"`
	Version   string            `json:"version"`
	RPCAddr   string            `json:"rpcAddr"`
	Connected bool              `json:"connected"`
	LastSeen  string            `json:"lastSeen"`
	Functions []string          `json:"functions"`
	Processes []string          `json:"processes"`
	Labels    map[string]string `json:"labels"`
}

type OpsAgentMetaResponse

type OpsAgentMetaResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsAgentMetaUpdateRequest

type OpsAgentMetaUpdateRequest struct {
	AgentID string      `json:"agentId"`
	Meta    interface{} `json:"meta"`
}

type OpsAgentMetricsRequest

type OpsAgentMetricsRequest struct {
	AgentID string `form:"agentId,optional"`
	Since   string `form:"since,optional"`
	Limit   int    `form:"limit,optional"`
}

type OpsAgentMetricsResponse

type OpsAgentMetricsResponse struct {
	Code    int              `json:"code"`
	Message string           `json:"message"`
	Data    []OpsMetricsData `json:"data,omitempty"`
}

type OpsAgentProcessesRequest

type OpsAgentProcessesRequest struct {
	AgentID string `path:"agentId"`
}

type OpsAgentProcessesResponse

type OpsAgentProcessesResponse struct {
	Code    int                 `json:"code"`
	Message string              `json:"message"`
	Data    []OpsManagedProcess `json:"data,omitempty"`
}

type OpsAgentSystemInfo

type OpsAgentSystemInfo struct {
	Hostname      string `json:"hostname"`
	OS            string `json:"os"`
	OSVersion     string `json:"osVersion"`
	KernelVersion string `json:"kernelVersion"`
	Arch          string `json:"arch"`
	CPUCores      int32  `json:"cpuCores"`
	TotalMemory   uint64 `json:"totalMemory"`
	BootTime      string `json:"bootTime"`
	AgentVersion  string `json:"agentVersion"`
}

type OpsAgentSystemInfoRequest

type OpsAgentSystemInfoRequest struct {
	AgentID string `path:"agentId"`
}

type OpsAgentSystemInfoResponse

type OpsAgentSystemInfoResponse struct {
	Code    int                `json:"code"`
	Message string             `json:"message"`
	Data    OpsAgentSystemInfo `json:"data,omitempty"`
}

type OpsAgentsListRequest

type OpsAgentsListRequest struct {
}

type OpsAgentsListResponse

type OpsAgentsListResponse struct {
	Code    int            `json:"code"`
	Message string         `json:"message"`
	Data    []OpsAgentInfo `json:"data,omitempty"`
}

type OpsAlert

type OpsAlert struct {
	Severity    string                 `json:"severity,omitempty"`
	Service     string                 `json:"service,omitempty"`
	Instance    string                 `json:"instance,omitempty"`
	Summary     string                 `json:"summary,omitempty"`
	StartsAt    string                 `json:"starts_at,omitempty"`
	EndsAt      string                 `json:"ends_at,omitempty"`
	Duration    string                 `json:"duration,omitempty"`
	Silenced    bool                   `json:"silenced,omitempty"`
	Labels      map[string]interface{} `json:"labels,omitempty"`
	Annotations map[string]interface{} `json:"annotations,omitempty"`
}

type OpsAlertSilenceDeleteRequest

type OpsAlertSilenceDeleteRequest struct {
	ID string `path:"id"`
}

type OpsAlertSilenceRequest

type OpsAlertSilenceRequest struct {
	AlertID  string `json:"alertId"`
	Duration int    `json:"duration"` // 静默时长(分钟)
}

type OpsAlertSilenceResponse

type OpsAlertSilenceResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsAlertsRequest

type OpsAlertsRequest struct {
}

type OpsAlertsResponse

type OpsAlertsResponse struct {
	Alerts []OpsAlert `json:"alerts"`
}

type OpsBackupCreateRequest

type OpsBackupCreateRequest struct {
	Name string `json:"name,optional"`
}

type OpsBackupCreateResponse

type OpsBackupCreateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsBackupDeleteRequest

type OpsBackupDeleteRequest struct {
	ID string `path:"id"`
}

type OpsBackupDeleteResponse

type OpsBackupDeleteResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsBackupDownloadRequest

type OpsBackupDownloadRequest struct {
	ID string `path:"id"`
}

type OpsBackupDownloadResponse

type OpsBackupDownloadResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsBackupsListRequest

type OpsBackupsListRequest struct {
	Page     int `form:"page,optional"`
	PageSize int `form:"pageSize,optional"`
}

type OpsBackupsListResponse

type OpsBackupsListResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsConfigRequest

type OpsConfigRequest struct {
}

type OpsConfigResponse

type OpsConfigResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsCpuMetrics

type OpsCpuMetrics struct {
	UsagePercent float64   `json:"usagePercent"`
	Cores        int32     `json:"cores"`
	PerCore      []float64 `json:"perCore,omitempty"`
	Load1M       float64   `json:"load1m"`
	Load5M       float64   `json:"load5m"`
	Load15M      float64   `json:"load15m"`
}

type OpsDiskMetrics

type OpsDiskMetrics struct {
	MountPoint     string  `json:"mountPoint"`
	Device         string  `json:"device"`
	FsType         string  `json:"fsType"`
	TotalBytes     uint64  `json:"totalBytes"`
	UsedBytes      uint64  `json:"usedBytes"`
	AvailableBytes uint64  `json:"availableBytes"`
	UsagePercent   float64 `json:"usagePercent"`
}

type OpsExecCommandRequest

type OpsExecCommandRequest struct {
	AgentID string   `path:"agentId"`
	Command string   `json:"command"`
	Args    []string `json:"args,optional"`
	Timeout int32    `json:"timeout,optional"`
}

type OpsExecCommandResponse

type OpsExecCommandResponse struct {
	Code    int                  `json:"code"`
	Message string               `json:"message"`
	Data    OpsExecCommandResult `json:"data,omitempty"`
}

type OpsExecCommandResult

type OpsExecCommandResult struct {
	Success  bool   `json:"success"`
	ExitCode int32  `json:"exitCode"`
	Stdout   string `json:"stdout"`
	Stderr   string `json:"stderr"`
}

type OpsFunctionsRequest

type OpsFunctionsRequest struct {
}

type OpsFunctionsResponse

type OpsFunctionsResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsHealthCheck

type OpsHealthCheck struct {
	ID          string `json:"id"`
	Name        string `json:"name,optional"`
	Enabled     bool   `json:"enabled"`
	Type        string `json:"type,optional"`
	Kind        string `json:"kind,optional"`
	Target      string `json:"target,optional"`
	Expect      string `json:"expect,optional"`
	Region      string `json:"region,optional"`
	Interval    int    `json:"interval,optional"`
	IntervalSec int    `json:"intervalSec,optional"`
	TimeoutMs   int    `json:"timeoutMs,optional"`
}

type OpsHealthGetRequest

type OpsHealthGetRequest struct {
}

type OpsHealthGetResponse

type OpsHealthGetResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsHealthRunRequest

type OpsHealthRunRequest struct {
	ID string `json:"id,optional"`
}

type OpsHealthRunResponse

type OpsHealthRunResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsHealthUpdateRequest

type OpsHealthUpdateRequest struct {
	Enabled bool             `json:"enabled"`
	Checks  []OpsHealthCheck `json:"checks,optional"`
}

type OpsHealthUpdateResponse

type OpsHealthUpdateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsMQRequest

type OpsMQRequest struct {
}

type OpsMQResponse

type OpsMQResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsMaintenanceGetRequest

type OpsMaintenanceGetRequest struct {
}

type OpsMaintenanceGetResponse

type OpsMaintenanceGetResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsMaintenanceUpdateRequest

type OpsMaintenanceUpdateRequest struct {
	Enabled bool                   `json:"enabled"`
	Message string                 `json:"message,optional"`
	Windows []OpsMaintenanceWindow `json:"windows,optional"`
}

type OpsMaintenanceUpdateResponse

type OpsMaintenanceUpdateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsMaintenanceWindow

type OpsMaintenanceWindow struct {
	ID          string `json:"id,optional"`
	GameID      string `json:"gameId,optional"`
	Env         string `json:"env,optional"`
	Start       string `json:"start"`
	End         string `json:"end"`
	Message     string `json:"message,optional"`
	BlockWrites bool   `json:"blockWrites,optional"`
}

type OpsManagedProcess

type OpsManagedProcess struct {
	Name         string `json:"name"`
	Command      string `json:"command"`
	WorkingDir   string `json:"workingDir"`
	State        string `json:"state"`
	Pid          int32  `json:"pid"`
	RestartCount int32  `json:"restartCount"`
	LastStart    string `json:"lastStart,omitempty"`
}

type OpsMemoryMetrics

type OpsMemoryMetrics struct {
	TotalBytes     uint64  `json:"totalBytes"`
	UsedBytes      uint64  `json:"usedBytes"`
	AvailableBytes uint64  `json:"availableBytes"`
	UsagePercent   float64 `json:"usagePercent"`
	SwapTotal      uint64  `json:"swapTotal"`
	SwapUsed       uint64  `json:"swapUsed"`
}

type OpsMetricsData

type OpsMetricsData struct {
	AgentID   string              `json:"agentId"`
	Timestamp string              `json:"timestamp"`
	CPU       OpsCpuMetrics       `json:"cpu"`
	Memory    OpsMemoryMetrics    `json:"memory"`
	Disks     []OpsDiskMetrics    `json:"disks,omitempty"`
	Networks  []OpsNetworkMetrics `json:"networks,omitempty"`
}

type OpsMetricsQuery

type OpsMetricsQuery struct {
	Start string `form:"start,optional"`
	End   string `form:"end,optional"`
}

type OpsMetricsResponse

type OpsMetricsResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsNetworkMetrics

type OpsNetworkMetrics struct {
	Interface   string `json:"interface"`
	BytesSent   uint64 `json:"bytesSent"`
	BytesRecv   uint64 `json:"bytesRecv"`
	PacketsSent uint64 `json:"packetsSent"`
	PacketsRecv uint64 `json:"packetsRecv"`
}

type OpsNodeActionRequest

type OpsNodeActionRequest struct {
	NodeID string `path:"nodeId"`
}

type OpsNodeCommandsQuery

type OpsNodeCommandsQuery struct {
	NodeID string `form:"nodeId"`
}

type OpsNodeCommandsResponse

type OpsNodeCommandsResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsNodeDrainResponse

type OpsNodeDrainResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsNodeMetaRequest

type OpsNodeMetaRequest struct {
	NodeID string `path:"nodeId"`
}

type OpsNodeMetaResponse

type OpsNodeMetaResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsNodeRestartResponse

type OpsNodeRestartResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsNodeUndrainResponse

type OpsNodeUndrainResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsNodesRequest

type OpsNodesRequest struct {
}

type OpsNodesResponse

type OpsNodesResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsNotificationChannel

type OpsNotificationChannel struct {
	ID     string `json:"id"`
	Type   string `json:"type"`
	URL    string `json:"url"`
	Secret string `json:"secret,optional"`
}

type OpsNotificationRule

type OpsNotificationRule struct {
	Event         string   `json:"event"`
	Channels      []string `json:"channels"`
	ThresholdDays int      `json:"thresholdDays,optional"`
}

type OpsNotificationsGetRequest

type OpsNotificationsGetRequest struct {
}

type OpsNotificationsGetResponse

type OpsNotificationsGetResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsNotificationsUpdateRequest

type OpsNotificationsUpdateRequest struct {
	Enabled  bool                     `json:"enabled"`
	Channels []OpsNotificationChannel `json:"channels,optional"`
	Rules    []OpsNotificationRule    `json:"rules,optional"`
}

type OpsNotificationsUpdateResponse

type OpsNotificationsUpdateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsProcessActionRequest

type OpsProcessActionRequest struct {
	AgentID string `path:"agentId"`
	Name    string `path:"name"`
	Force   bool   `json:"force,optional"`
}

type OpsProcessActionResponse

type OpsProcessActionResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    int32  `json:"pid,omitempty"`
}

type OpsProcessStartRequest

type OpsProcessStartRequest struct {
	AgentID string `path:"agentId"`
	Name    string `path:"name"`
}

type OpsProcessStartResponse

type OpsProcessStartResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Data    int32  `json:"pid,omitempty"`
}

type OpsServiceItem added in v0.1.1

type OpsServiceItem struct {
	ID             string              `json:"id"`
	Name           string              `json:"name"`
	Type           string              `json:"type"`
	Status         string              `json:"status"`
	Address        string              `json:"address,optional"`
	GameID         string              `json:"gameId,optional"`
	Env            string              `json:"env,optional"`
	Version        string              `json:"version,optional"`
	Region         string              `json:"region,optional"`
	Zone           string              `json:"zone,optional"`
	Labels         map[string]string   `json:"labels,optional"`
	FunctionsCount int                 `json:"functionsCount,optional"`
	LastSeen       string              `json:"lastSeen,optional"`
	Metadata       *OpsServiceMetadata `json:"metadata,optional"`
}

type OpsServiceMetadata added in v0.1.2

type OpsServiceMetadata struct {
	Processes      []OpsServiceProcess `json:"processes,optional"`
	ProcessesCount int                 `json:"processesCount,optional"`
}

type OpsServiceProcess added in v0.1.2

type OpsServiceProcess struct {
	ServiceID    string   `json:"service_id"`
	Addr         string   `json:"addr,optional"`
	Version      string   `json:"version,optional"`
	LastSeenUnix int64    `json:"last_seen_unix,optional"`
	FunctionIDs  []string `json:"function_ids,optional"`
	Functions    int      `json:"functions,optional"`
}

type OpsServicesRequest

type OpsServicesRequest struct {
}

type OpsServicesResponse

type OpsServicesResponse struct {
	Services []OpsServiceItem `json:"services"`
	Total    int              `json:"total"`
}

type OpsSilenceDeleteResponse

type OpsSilenceDeleteResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OpsSilencesRequest

type OpsSilencesRequest struct {
}

type OpsSilencesResponse

type OpsSilencesResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type OverviewMetrics

type OverviewMetrics struct {
	DAU        int     `json:"dau"`
	MAU        int     `json:"mau"`
	NewUsers   int     `json:"newUsers"`
	Revenue    float64 `json:"revenue"`
	ARPU       float64 `json:"arpu"`
	ARPPU      float64 `json:"arppu"`
	PayingRate float64 `json:"payingRate"`
}

type OverviewRequest

type OverviewRequest struct {
	AnalyticsQuery
}

type OverviewResponse

type OverviewResponse struct {
	Metrics OverviewMetrics `json:"metrics"`
	Trends  interface{}     `json:"trends"`
}

type PacksExportRequest

type PacksExportRequest struct {
	ID string `form:"id"`
}

type PacksExportResponse

type PacksExportResponse struct {
	Filename    string `json:"filename,omitempty"`
	ContentType string `json:"contentType,omitempty"`
	Content     []byte `json:"content,omitempty"`
}

type PacksImportRequest

type PacksImportRequest struct {
	Archive string `json:"archive"`
}

type PacksImportResponse

type PacksImportResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type PacksListRequest

type PacksListRequest struct {
	Page     int `form:"page,optional"`
	PageSize int `form:"pageSize,optional"`
}

type PacksListResponse

type PacksListResponse struct {
	Manifest           interface{} `json:"manifest,omitempty"`
	Packs              interface{} `json:"packs,omitempty"`
	Counts             interface{} `json:"counts,omitempty"`
	ETag               string      `json:"etag,omitempty"`
	ExportAuthRequired bool        `json:"exportAuthRequired,omitempty"`
}

type PacksPluginRequest added in v0.1.1

type PacksPluginRequest struct {
	Pack string `form:"pack"`
	Path string `form:"path"`
}

type PacksPluginResponse added in v0.1.1

type PacksPluginResponse struct {
	Content string `json:"content,omitempty"`
}

type PacksReloadRequest

type PacksReloadRequest struct {
}

type PacksReloadResponse

type PacksReloadResponse struct {
	OK        bool   `json:"ok"`
	UpdatedAt string `json:"updatedAt,optional"`
}

type PaymentTransaction

type PaymentTransaction struct {
	Id            string  `json:"id"`
	UserId        string  `json:"userId"`
	ProductId     string  `json:"productId"`
	Amount        float64 `json:"amount"`
	Currency      string  `json:"currency"`
	Status        string  `json:"status"`
	PaymentMethod string  `json:"paymentMethod"`
	CreatedAt     string  `json:"createdAt"`
}

type PaymentsIngestRequest

type PaymentsIngestRequest struct {
	GameId       string      `json:"gameId"`
	Env          string      `json:"env"`
	Transactions interface{} `json:"transactions"`
	Timestamp    string      `json:"timestamp,optional"`
}

type PaymentsIngestResponse

type PaymentsIngestResponse struct {
	Accepted int    `json:"accepted"`
	Rejected int    `json:"rejected"`
	BatchId  string `json:"batchId"`
}

type PaymentsMetrics

type PaymentsMetrics struct {
	Revenue        float64 `json:"revenue"`
	Transactions   int     `json:"transactions"`
	PayingUsers    int     `json:"payingUsers"`
	ARPU           float64 `json:"arpu"`
	ARPPU          float64 `json:"arppu"`
	ConversionRate float64 `json:"conversionRate"`
}

type PaymentsProductTrendRequest

type PaymentsProductTrendRequest struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
	Limit     int    `form:"limit,optional,default=10"`
}

type PaymentsProductTrendResponse

type PaymentsProductTrendResponse struct {
	Items []ProductTrend `json:"items"`
}

type PaymentsRequest

type PaymentsRequest struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
}

type PaymentsResponse

type PaymentsResponse struct {
	Metrics PaymentsMetrics `json:"metrics"`
	Trends  interface{}     `json:"trends"`
}

type PaymentsSummary

type PaymentsSummary struct {
	Date         string  `json:"date"`
	Revenue      float64 `json:"revenue"`
	Transactions int     `json:"transactions"`
	Users        int     `json:"users"`
}

type PaymentsSummaryRequest

type PaymentsSummaryRequest struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
	GroupBy   string `form:"groupBy,optional,default=day"` // day, week, month
}

type PaymentsSummaryResponse

type PaymentsSummaryResponse struct {
	Items []PaymentsSummary `json:"items"`
}

type PaymentsTransactionsRequest

type PaymentsTransactionsRequest struct {
	Page      int    `form:"page,optional,default=1"`
	PageSize  int    `form:"pageSize,optional,default=20"`
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	Status    string `form:"status,optional"`
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
}

type PaymentsTransactionsResponse

type PaymentsTransactionsResponse struct {
	Items []PaymentTransaction `json:"items"`
	Total int64                `json:"total"`
	Page  int                  `json:"page"`
	Size  int                  `json:"pageSize"`
}

type PendingFunction

type PendingFunction struct {
	Id        string `json:"id"`
	Name      string `json:"name"`
	Status    string `json:"status"`
	Requester string `json:"requester"`
	CreatedAt string `json:"createdAt"`
}

type Permission

type Permission struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	Description string `json:"description"`
	Resource    string `json:"resource"`
	Action      string `json:"action"`
	Category    string `json:"category"`
	CreatedAt   string `json:"createdAt"`
	UpdatedAt   string `json:"updatedAt"`
}

type PermissionDetailRequest

type PermissionDetailRequest struct {
	ID string `path:"id"`
}

type PermissionDetailResponse

type PermissionDetailResponse struct {
	Permission
}

type PermissionsListRequest

type PermissionsListRequest struct {
	Page     int    `form:"page,optional,default=1"`
	PageSize int    `form:"pageSize,optional,default=20"`
	Category string `form:"category,optional"`
	Resource string `form:"resource,optional"`
}

type PermissionsListResponse

type PermissionsListResponse struct {
	Items []Permission `json:"items"`
	Total int64        `json:"total"`
	Page  int          `json:"page"`
	Size  int          `json:"pageSize"`
}

type PlatformInfo

type PlatformInfo struct {
	Name    string   `json:"name"`    // 平台名称
	Enabled bool     `json:"enabled"` // 是否启用
	Methods []string `json:"methods"` // 支持的方法列表
}

type Player

type Player struct {
	Id        int64  `json:"id"`
	Username  string `json:"username"`
	Nickname  string `json:"nickname"`
	Email     string `json:"email"`
	Phone     string `json:"phone"`
	GameId    string `json:"gameId"`
	Status    int    `json:"status"`  // 1:active 0:banned 2:suspended
	Balance   int64  `json:"balance"` // 游戏货币
	Level     int    `json:"level"`
	Vip       int    `json:"vip"`
	CreatedAt string `json:"createdAt"`
	UpdatedAt string `json:"updatedAt"`
}

type PlayerBalanceRequest

type PlayerBalanceRequest struct {
	ID     string `path:"id"`
	Amount int64  `json:"amount"`
	Reason string `json:"reason"`
}

type PlayerBalanceResponse

type PlayerBalanceResponse struct {
	Player
}

type PlayerCreateRequest

type PlayerCreateRequest struct {
	Username string `json:"username"`
	Password string `json:"password"`
	Nickname string `json:"nickname,optional"`
	Email    string `json:"email,optional"`
	Phone    string `json:"phone,optional"`
	GameId   string `json:"gameId"`
}

type PlayerCreateResponse

type PlayerCreateResponse struct {
	Player
}

type PlayerDeleteRequest

type PlayerDeleteRequest struct {
	ID string `path:"id"`
}

type PlayerDetailRequest

type PlayerDetailRequest struct {
	ID string `path:"id"`
}

type PlayerDetailResponse

type PlayerDetailResponse struct {
	Player
}

type PlayerUpdateRequest

type PlayerUpdateRequest struct {
	ID       string `path:"id"`
	Nickname string `json:"nickname,optional"`
	Email    string `json:"email,optional"`
	Phone    string `json:"phone,optional"`
	Status   int    `json:"status,optional"`
	Level    int    `json:"level,optional"`
	Vip      int    `json:"vip,optional"`
}

type PlayerUpdateResponse

type PlayerUpdateResponse struct {
	Player
}

type PlayersListRequest

type PlayersListRequest struct {
	Page     int    `form:"page,optional,default=1"`
	PageSize int    `form:"pageSize,optional,default=20"`
	GameId   string `form:"gameId,optional"`
	Search   string `form:"search,optional"`
	Status   int    `form:"status,optional"`
	Level    int    `form:"level,optional"`
	Vip      int    `form:"vip,optional"`
}

type PlayersListResponse

type PlayersListResponse struct {
	Items []Player `json:"items"`
	Total int64    `json:"total"`
	Page  int      `json:"page"`
	Size  int      `json:"pageSize"`
}

type ProductTrend

type ProductTrend struct {
	ProductId   string  `json:"productId"`
	ProductName string  `json:"productName"`
	Revenue     float64 `json:"revenue"`
	Sales       int     `json:"sales"`
	Growth      float64 `json:"growth"`
}

type ProfileGame

type ProfileGame struct {
	GameId      string      `json:"gameId"`
	GameName    string      `json:"gameName"`
	Color       string      `json:"color,optional"`
	Envs        []string    `json:"envs"`
	EnvMeta     interface{} `json:"envMeta,optional"`
	Permissions []string    `json:"permissions"`
}

type ProfileGamesRequest

type ProfileGamesRequest struct {
}

type ProfileGamesResponse

type ProfileGamesResponse struct {
	Games []ProfileGame `json:"games"`
}

type ProfileGetRequest

type ProfileGetRequest struct {
}

type ProfileGetResponse

type ProfileGetResponse struct {
	ProfileInfo
}

type ProfileInfo

type ProfileInfo struct {
	Id        int64    `json:"id"`
	Username  string   `json:"username"`
	Nickname  string   `json:"nickname"`
	Email     string   `json:"email"`
	Phone     string   `json:"phone"`
	Roles     []string `json:"roles"`
	Avatar    string   `json:"avatar"`
	CreatedAt string   `json:"createdAt"`
	UpdatedAt string   `json:"updatedAt"`
}

type ProfilePasswordRequest

type ProfilePasswordRequest struct {
	OldPassword string `json:"oldPassword"`
	NewPassword string `json:"newPassword"`
}

type ProfilePermission

type ProfilePermission struct {
	Resource string   `json:"resource"`
	Actions  []string `json:"actions"`
	GameId   string   `json:"gameId,omitempty"`
	Env      string   `json:"env,omitempty"`
}

type ProfilePermissionsRequest

type ProfilePermissionsRequest struct {
	GameId string `form:"gameId,optional"`
	Env    string `form:"env,optional"`
}

type ProfilePermissionsResponse

type ProfilePermissionsResponse struct {
	Permissions   []ProfilePermission `json:"permissions"`
	Admin         bool                `json:"admin"`
	Roles         []string            `json:"roles"`
	PermissionIDs []string            `json:"permissionIDs,omitempty"`
}

type ProfileUpdateRequest

type ProfileUpdateRequest struct {
	Nickname string `json:"nickname,optional"`
	Email    string `json:"email,optional"`
	Phone    string `json:"phone,optional"`
	Avatar   string `json:"avatar,optional"`
}

type ProviderActionRequest

type ProviderActionRequest struct {
	ID string `path:"id"`
}

type ProviderDeleteResponse

type ProviderDeleteResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ProviderDetailRequest

type ProviderDetailRequest struct {
	ID string `path:"id"`
}

type ProviderDetailResponse

type ProviderDetailResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ProviderReloadResponse

type ProviderReloadResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ProvidersCapabilitiesRequest

type ProvidersCapabilitiesRequest struct {
}

type ProvidersCapabilitiesResponse

type ProvidersCapabilitiesResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ProvidersDescriptorsRequest

type ProvidersDescriptorsRequest struct {
}

type ProvidersDescriptorsResponse

type ProvidersDescriptorsResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ProvidersEntitiesRequest

type ProvidersEntitiesRequest struct {
	ID string `path:"id"`
}

type ProvidersEntitiesResponse

type ProvidersEntitiesResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type ProvidersListRequest

type ProvidersListRequest struct {
	Page     int `form:"page,optional"`
	PageSize int `form:"pageSize,optional"`
}

type ProvidersListResponse

type ProvidersListResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type RateLimit

type RateLimit struct {
	Id        string      `json:"id"`
	Name      string      `json:"name"`
	Resource  string      `json:"resource"` // function, api, user
	Limit     int         `json:"limit"`    // 每秒请求数
	Window    int         `json:"window"`   // 时间窗口(秒)
	Action    string      `json:"action"`   // reject, throttle
	Rules     interface{} `json:"rules"`
	Status    int         `json:"status"`
	UpdatedAt string      `json:"updatedAt"`
}

type RateLimitDeleteRequest

type RateLimitDeleteRequest struct {
	ID string `path:"id"`
}

type RateLimitGetRequest

type RateLimitGetRequest struct {
	ID string `path:"id"`
}

type RateLimitPreviewRequest

type RateLimitPreviewRequest struct {
	Rules interface{} `json:"rules"`
}

type RateLimitPreviewResponse

type RateLimitPreviewResponse struct {
	Matches interface{} `json:"matches"`
	Impact  interface{} `json:"impact"`
}

type RateLimitResponse

type RateLimitResponse struct {
	RateLimit
}

type RateLimitUpsertRequest

type RateLimitUpsertRequest struct {
	Name     string      `json:"name"`
	Resource string      `json:"resource"`
	Limit    int         `json:"limit"`
	Window   int         `json:"window"`
	Action   string      `json:"action"`
	Rules    interface{} `json:"rules,optional"`
}

type RateLimitsListRequest

type RateLimitsListRequest struct {
	Resource string `form:"resource,optional"`
}

type RateLimitsListResponse

type RateLimitsListResponse struct {
	Items []RateLimit `json:"items"`
}

type RealtimeMetrics

type RealtimeMetrics struct {
	OnlineUsers    int         `json:"onlineUsers"`
	ActiveSessions int         `json:"activeSessions"`
	QPS            float64     `json:"qps"`
	AvgLatency     float64     `json:"avgLatency"`
	ErrorRate      float64     `json:"errorRate"`
	TopEvents      interface{} `json:"topEvents"`
}

type RealtimeRequest

type RealtimeRequest struct {
	GameId string `form:"gameId,optional"`
	Env    string `form:"env,optional"`
}

type RealtimeResponse

type RealtimeResponse struct {
	RealtimeMetrics
	Timestamp string `json:"timestamp"`
}

type RealtimeSeriesRequest

type RealtimeSeriesRequest struct {
	GameId   string `form:"gameId,optional"`
	Env      string `form:"env,optional"`
	Interval string `form:"interval,optional,default=1m"` // 1m, 5m, 15m
	Duration int    `form:"duration,optional,default=60"` // 分钟
}

type RealtimeSeriesResponse

type RealtimeSeriesResponse struct {
	Series interface{} `json:"series"`
}

type RegistryAgent

type RegistryAgent struct {
	AgentID      string `json:"AgentID"`
	GameID       string `json:"GameID,omitempty"`
	Env          string `json:"Env,omitempty"`
	RpcAddr      string `json:"RpcAddr,omitempty"`
	Functions    int    `json:"Functions"`
	Healthy      bool   `json:"Healthy"`
	ExpiresInSec int    `json:"ExpiresInSec"`
}

type RegistryCoverage

type RegistryCoverage struct {
	GameEnv   string                          `json:"game_env"`
	Functions map[string]RegistryCoverageStat `json:"functions"`
	Uncovered []string                        `json:"uncovered,optional"`
}

type RegistryCoverageStat

type RegistryCoverageStat struct {
	Healthy int `json:"healthy"`
	Total   int `json:"total"`
}

type RegistryFunction

type RegistryFunction struct {
	GameID string   `json:"GameID,omitempty"`
	ID     string   `json:"ID"`
	Agents []string `json:"Agents,omitempty"`
}

type RegistryRequest

type RegistryRequest struct {
}

type RegistryResponse

type RegistryResponse struct {
	Agents      []RegistryAgent     `json:"agents"`
	Functions   []RegistryFunction  `json:"functions"`
	Assignments map[string][]string `json:"assignments"`
	Coverage    []RegistryCoverage  `json:"coverage"`
}

type ReloadPlatformConfigResponse

type ReloadPlatformConfigResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
	Success bool   `json:"success,omitempty"`
}

type RenameDirectoryRequest added in v0.1.2

type RenameDirectoryRequest struct {
	OldPrefix string `json:"old_prefix"`
	NewPrefix string `json:"new_prefix"`
}

type RenameDirectoryResponse added in v0.1.2

type RenameDirectoryResponse struct {
	Code    int    `json:"code"`
	Message string `json:"message"`
}

type RetentionCohort

type RetentionCohort struct {
	Cohort    string    `json:"cohort"`
	Users     int       `json:"users"`
	Retention []float64 `json:"retention"` // Day 1, 3, 7, 14, 30
}

type RetentionRequest

type RetentionRequest struct {
	GameId    string `form:"gameId,optional"`
	Env       string `form:"env,optional"`
	Cohort    string `form:"cohort,optional"` // daily, weekly, monthly
	StartDate string `form:"startDate,optional"`
	EndDate   string `form:"endDate,optional"`
}

type RetentionResponse

type RetentionResponse struct {
	Cohorts []RetentionCohort `json:"cohorts"`
}

type Role

type Role struct {
	Id          int64    `json:"id"`
	Name        string   `json:"name"`
	Description string   `json:"description"`
	Category    string   `json:"category"`
	Permissions []string `json:"permissions"`
	CreatedAt   string   `json:"createdAt"`
	UpdatedAt   string   `json:"updatedAt"`
}

type RoleCreateRequest

type RoleCreateRequest struct {
	Name        string   `json:"name"`
	Description string   `json:"description,optional"`
	Category    string   `json:"category,optional"`
	Permissions []string `json:"permissions,optional"`
}

type RoleCreateResponse

type RoleCreateResponse struct {
	Role
}

type RoleDeleteRequest

type RoleDeleteRequest struct {
	ID string `path:"id"`
}

type RoleDetailRequest

type RoleDetailRequest struct {
	ID string `path:"id"`
}

type RoleDetailResponse

type RoleDetailResponse struct {
	Role
}

type RoleUpdateRequest

type RoleUpdateRequest struct {
	ID          string   `path:"id"`
	Name        string   `json:"name,optional"`
	Description string   `json:"description,optional"`
	Category    string   `json:"category,optional"`
	Permissions []string `json:"permissions,optional"`
}

type RoleUpdateResponse

type RoleUpdateResponse struct {
	Role
}

type RolesListRequest

type RolesListRequest struct {
	Page     int    `form:"page,optional,default=1"`
	PageSize int    `form:"pageSize,optional,default=20"`
	Category string `form:"category,optional"`
	Search   string `form:"search,optional"`
}

type RolesListResponse

type RolesListResponse struct {
	Items []Role `json:"items"`
	Total int64  `json:"total"`
	Page  int    `json:"page"`
	Size  int    `json:"pageSize"`
}

type RootRequest

type RootRequest struct {
}

type RootResponse

type RootResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type SchemaCreateRequest

type SchemaCreateRequest struct {
	Name   string      `json:"name"`
	Schema interface{} `json:"schema"`
}

type SchemaCreateResponse

type SchemaCreateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type SchemaDeleteRequest

type SchemaDeleteRequest struct {
	ID string `path:"id"`
}

type SchemaDeleteResponse

type SchemaDeleteResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type SchemaDetailRequest

type SchemaDetailRequest struct {
	ID string `path:"id"`
}

type SchemaDetailResponse

type SchemaDetailResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type SchemaRawValidateRequest

type SchemaRawValidateRequest struct {
	Schema interface{} `json:"schema"`
	Data   interface{} `json:"data"`
}

type SchemaRawValidateResponse

type SchemaRawValidateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type SchemaUIConfigRequest

type SchemaUIConfigRequest struct {
	ID string `path:"id"`
}

type SchemaUIConfigResponse

type SchemaUIConfigResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type SchemaUIConfigUpdateRequest

type SchemaUIConfigUpdateRequest struct {
	ID     string      `path:"id"`
	Config interface{} `json:"config"`
}

type SchemaUIConfigUpdateResponse

type SchemaUIConfigUpdateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type SchemaUpdateRequest

type SchemaUpdateRequest struct {
	ID     string      `path:"id"`
	Schema interface{} `json:"schema"`
}

type SchemaUpdateResponse

type SchemaUpdateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type SchemaValidateRequest

type SchemaValidateRequest struct {
	ID   string      `path:"id"`
	Data interface{} `json:"data"`
}

type SchemaValidateResponse

type SchemaValidateResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type SchemasListRequest

type SchemasListRequest struct {
	Page     int `form:"page,optional"`
	PageSize int `form:"pageSize,optional"`
}

type SchemasListResponse

type SchemasListResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type SignedUrlRequest

type SignedUrlRequest struct {
	Path   string `form:"path"`
	Expire int    `form:"expire,optional"`
}

type SignedUrlResponse

type SignedUrlResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type Silence

type Silence struct {
	Id        string      `json:"id"`
	AlertType string      `json:"alertType"`
	Matchers  interface{} `json:"matchers"`
	StartAt   string      `json:"startAt"`
	EndAt     string      `json:"endAt"`
	CreatedBy string      `json:"createdBy"`
}

type SilenceDeleteRequest

type SilenceDeleteRequest struct {
	ID string `path:"id"`
}

type SilencesListRequest

type SilencesListRequest struct {
}

type SilencesListResponse

type SilencesListResponse struct {
	Items []Silence `json:"items"`
}

type StatusRequest

type StatusRequest struct {
}

type StatusResponse

type StatusResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type StreamJobRequest

type StreamJobRequest struct {
	JobID string `path:"jobId"`
}

type StreamJobResponse

type StreamJobResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type StreamMessagesRequest

type StreamMessagesRequest struct {
}

type StreamMessagesResponse

type StreamMessagesResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type Ticket

type Ticket struct {
	Id        int64    `json:"id"`
	Title     string   `json:"title"`
	Content   string   `json:"content"`
	Category  string   `json:"category"`
	Priority  string   `json:"priority"`
	Status    string   `json:"status"`
	Assignee  string   `json:"assignee"`
	Tags      []string `json:"tags"`
	PlayerId  string   `json:"playerId"`
	Contact   string   `json:"contact"`
	GameId    string   `json:"gameId"`
	Env       string   `json:"env"`
	Source    string   `json:"source"`
	CreatedAt string   `json:"createdAt"`
	UpdatedAt string   `json:"updatedAt"`
}

type TicketCommentCreateRequest

type TicketCommentCreateRequest struct {
	TicketID string `path:"ticketId"`
	Content  string `json:"content"`
}

type TicketCommentsRequest

type TicketCommentsRequest struct {
	TicketID string `path:"ticketId"`
}

type TicketCommentsResponse

type TicketCommentsResponse struct {
	Items []Comment `json:"items"`
}

type TicketCreateRequest

type TicketCreateRequest struct {
	Title    string   `json:"title"`
	Content  string   `json:"content"`
	Category string   `json:"category"`
	Priority string   `json:"priority,optional,default=medium"`
	Tags     []string `json:"tags,optional"`
	PlayerId string   `json:"playerId,optional"`
	Contact  string   `json:"contact,optional"`
	GameId   string   `json:"gameId,optional"`
	Env      string   `json:"env,optional"`
}

type TicketDeleteRequest

type TicketDeleteRequest struct {
	ID string `path:"id"`
}

type TicketDetailRequest

type TicketDetailRequest struct {
	ID string `path:"id"`
}

type TicketDetailResponse

type TicketDetailResponse struct {
	Ticket
	Comments []Comment `json:"comments,omitempty"`
}

type TicketTransitionRequest

type TicketTransitionRequest struct {
	ID     string `path:"id"`
	Status string `json:"status"` // open, in_progress, resolved, closed
	Note   string `json:"note,optional"`
}

type TicketUpdateRequest

type TicketUpdateRequest struct {
	ID       string   `path:"id"`
	Title    string   `json:"title,optional"`
	Content  string   `json:"content,optional"`
	Category string   `json:"category,optional"`
	Priority string   `json:"priority,optional"`
	Assignee string   `json:"assignee,optional"`
	Tags     []string `json:"tags,optional"`
}

type TicketsListRequest

type TicketsListRequest struct {
	Page     int    `form:"page,optional,default=1"`
	PageSize int    `form:"pageSize,optional,default=20"`
	Status   string `form:"status,optional"`
	Category string `form:"category,optional"`
	Priority string `form:"priority,optional"`
	Assignee string `form:"assignee,optional"`
}

type TicketsListResponse

type TicketsListResponse struct {
	Items []Ticket `json:"items"`
	Total int64    `json:"total"`
	Page  int      `json:"page"`
	Size  int      `json:"pageSize"`
}

type UISchemaRequest

type UISchemaRequest struct {
	Type string `form:"type"`
}

type UISchemaResponse

type UISchemaResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type UploadObjectData added in v0.1.2

type UploadObjectData struct {
	Key string `json:"key"`
	URL string `json:"url"`
}

type UploadObjectRequest added in v0.1.2

type UploadObjectRequest struct {
}

type UploadObjectResponse added in v0.1.2

type UploadObjectResponse struct {
	Code    int              `json:"code"`
	Message string           `json:"message"`
	Data    UploadObjectData `json:"data"`
}

type UserInfo

type UserInfo struct {
	Username string   `json:"username"`
	Roles    []string `json:"roles"`
	Nickname string   `json:"nickname,omitempty"`
	Email    string   `json:"email,omitempty"`
	Phone    string   `json:"phone,omitempty"`
}

type XRenderComponentsRequest

type XRenderComponentsRequest struct {
}

type XRenderComponentsResponse

type XRenderComponentsResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type XRenderGenerateRequest

type XRenderGenerateRequest struct {
	Schema interface{} `json:"schema"`
}

type XRenderGenerateSchemaResponse

type XRenderGenerateSchemaResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type XRenderPreviewRequest

type XRenderPreviewRequest struct {
	Schema interface{} `json:"schema"`
}

type XRenderPreviewSchemaResponse

type XRenderPreviewSchemaResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

type XRenderTemplatesRequest

type XRenderTemplatesRequest struct {
}

type XRenderTemplatesResponse

type XRenderTemplatesResponse struct {
	Code    int         `json:"code"`
	Message string      `json:"message"`
	Data    interface{} `json:"data,omitempty"`
}

Jump to

Keyboard shortcuts

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