Documentation ¶
Index ¶
- Constants
- Variables
- func AddReport(r Roguelike_Report, uuid uuid.UUID) (string, error)
- func AddReports(r []Roguelike_Report, uuid uuid.UUID) ([]string, error)
- func BindEmailToUUID(nuuid uuid.UUID, email string) error
- func CheckUUID(uuid u.UUID) (bool, error)
- func DeleteReport(logid string) error
- func GetMsg(code int) string
- func GetReportByID(logid string, result *Roguelike_Report_With_ID) error
- func GetReportListByAccount(uuid string, page int, pagesize int, result *[]Roguelike_Report_With_ID) error
- func NewUUID() (u.UUID, error)
- type Brief
- type Initial
- type JSONResult
- type Login
- type NewToken
- type Node
- type Recruits
- type ReportID
- type ReportIDs
- type Roguelike_Report
- type Roguelike_Report_With_ID
- type Roguelike_Report_With_UUID
- type Shop
- type Shop_Buy
- type Zone
Constants ¶
View Source
const ( SUCCESS = 200 CREATED = 201 ERROR = 500 INVALID_PARAMS = 400 ERROR_EXIST_REPORT = 10001 ERROR_NOT_EXIST_REPORT = 10002 ERROR_AUTH_CHECK_TOKEN_FAIL = 20001 ERROR_AUTH_CHECK_TOKEN_TIMEOUT = 20002 ERROR_AUTH_TOKEN = 20003 ERROR_AUTH = 20004 )
Variables ¶
View Source
var MsgFlags = map[int]string{
SUCCESS: "ok",
CREATED: "ok",
ERROR: "fail",
INVALID_PARAMS: "请求参数错误",
ERROR_EXIST_REPORT: "作战报告已经存在",
ERROR_NOT_EXIST_REPORT: "作战报告不存在或者未找到",
ERROR_AUTH_CHECK_TOKEN_FAIL: "20001",
ERROR_AUTH_CHECK_TOKEN_TIMEOUT: "20002",
ERROR_AUTH_TOKEN: "20003",
ERROR_AUTH: "20004",
}
Functions ¶
func AddReports ¶
func AddReports(r []Roguelike_Report, uuid uuid.UUID) ([]string, error)
func DeleteReport ¶
func GetReportByID ¶
func GetReportByID(logid string, result *Roguelike_Report_With_ID) error
func GetReportListByAccount ¶
func GetReportListByAccount(uuid string, page int, pagesize int, result *[]Roguelike_Report_With_ID) error
Types ¶
type JSONResult ¶
type Login ¶
type Login struct {
UUID string `json:"uuid" form:"uuid" example:"00000000-0000-0000-0000-000000000000"`
}
type NewToken ¶
type NewToken struct {
Token string `` /* 178-byte string literal not displayed */
}
type Node ¶
type Node struct { Type int `json:"type"` Stage string `json:"stage"` Collections []string `json:"collections"` Select []string `json:"select"` Capsules []string `json:"capsules"` Tools []string `json:"tools"` Tickets []string `json:"tickets"` Recruits []string `json:"recruits"` Upgrades []string `json:"upgrades"` Shop Shop `json:"shop"` }
type ReportID ¶
type ReportID struct {
ID string `bson:"_id" json:"id" example:"6213912d7f21c24ec55377ac"`
}
type ReportIDs ¶
type ReportIDs struct {
ID []string `bson:"_id" json:"id" example:"6213912d7f21c24ec55377ac,6213912d7f21c24ec55377aa"`
}
type Roguelike_Report ¶
type Roguelike_Report_With_ID ¶
type Roguelike_Report_With_ID struct { ID string `bson:"_id" json:"id"` Roguelike_Report `bson:",inline"` }
type Roguelike_Report_With_UUID ¶
type Roguelike_Report_With_UUID struct { UUID interface{} `json:"uuid"` Roguelike_Report `bson:",inline"` }
Click to show internal directories.
Click to hide internal directories.