Documentation ¶
Index ¶
- func Destroy()
- func Init(baseUrl string, timeoutSec time.Duration)
- type ActivityInfo
- type CreateSquadsRequest
- type GetActivityParam
- type GetByIdParam
- type GetPlayerParam
- type GetSquadsParam
- type GetStatisticParam
- type PageQuery
- type PlayerInfo
- type Resp
- func ActivityData(activityId string) (*Resp, error)
- func ActivityHomePage(activityId string) (*Resp, error)
- func CreateActivity(params ActivityInfo) (*Resp, error)
- func CreateSquads(params CreateSquadsRequest) (*Resp, error)
- func DeleteActivity(params ActivityInfo) (*Resp, error)
- func DeleteSquads(params SquadsInfo) (*Resp, error)
- func GetActivity(params GetActivityParam) (*Resp, error)
- func GetActivityByID(params GetByIdParam) (*Resp, error)
- func GetPlayer(params GetPlayerParam) (*Resp, error)
- func GetSquads(params GetSquadsParam) (*Resp, error)
- func GetStatistic(params GetStatisticParam) (*Resp, error)
- func ImportExcel(activityId string, f *multipart.FileHeader) (*Resp, error)
- func UpdateActivity(params ActivityInfo) (*Resp, error)
- func UpdateSquads(params CreateSquadsRequest) (*Resp, error)
- type Result
- type SquadsInfo
- type StatisticInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ActivityInfo ¶
type ActivityInfo struct { Id string `form:"id" json:"id" gorm:"primary_key;comment:id;"` Name string `form:"name" json:"name" gorm:"not null;type:varchar(1024);comment:活动名称"` Start string `form:"start" json:"start" gocp:"time"` End string `form:"end" json:"end" gocp:"time"` GameName string `form:"gameName" json:"gameName"` ResponsiblePerson string `form:"responsiblePerson" json:"responsiblePerson" gorm:"type:varchar(128);comment:负责人"` State uint8 `form:"state" json:"state" gorm:"not null;comment:状态"` TangentId string `form:"tangentId" json:"tangentId" gorm:"not null;type:varchar(32);comment:组织id"` }
type CreateSquadsRequest ¶ added in v0.13.11
type CreateSquadsRequest struct {
Info []SquadsInfo `json:"info"`
}
type GetActivityParam ¶
type GetActivityParam struct { ActivityInfo PageQuery }
type GetByIdParam ¶ added in v0.13.21
type GetByIdParam struct {
Id string `form:"id" json:"id"`
}
type GetPlayerParam ¶ added in v0.13.9
type GetPlayerParam struct { PlayerInfo PageQuery }
type GetSquadsParam ¶ added in v0.13.5
type GetSquadsParam struct { SquadsInfo PageQuery }
type GetStatisticParam ¶ added in v0.13.18
type GetStatisticParam struct { StatisticInfo PageQuery }
type PlayerInfo ¶ added in v0.13.9
type PlayerInfo struct { Id string `form:"id" json:"id" gorm:"primary_key;comment:id;"` Area string `form:"area" json:"area" gorm:"not null;type:varchar(1024);comment:地区"` SquadsName string `form:"squadsName" json:"squadsName" gorm:"not null;type:varchar(520);comment:战队名称"` Name string `form:"name" json:"name" gorm:"not null;type:varchar(100);comment:选手姓名"` Captain bool `form:"captain" json:"captain" gorm:"not null;comment:是否队长"` IdCard string `form:"idCard" json:"idCard" gorm:"not null;type:varchar(100);comment:身份证"` State uint8 `form:"state" json:"state" gorm:"not null;comment:状态"` ActivityName string `form:"activityName" json:"activityName" gorm:"not null;type:varchar(100);comment:活动名称"` ActivityId string `form:"activityId" json:"activityId" gorm:"not null;type:varchar(32);comment:活动id"` TangentId string `form:"tangentId" json:"tangentId"` CreateBy string `json:"createBy" form:"createBy"` }
type Resp ¶
type Resp struct { Data any `json:"data"` Code int `json:"code"` Suc bool `json:"success"` Msg string `json:"msg"` }
func ActivityData ¶ added in v0.13.10
func ActivityHomePage ¶ added in v0.13.10
func CreateActivity ¶
func CreateActivity(params ActivityInfo) (*Resp, error)
func CreateSquads ¶ added in v0.13.5
func CreateSquads(params CreateSquadsRequest) (*Resp, error)
func DeleteActivity ¶
func DeleteActivity(params ActivityInfo) (*Resp, error)
func DeleteSquads ¶ added in v0.13.5
func DeleteSquads(params SquadsInfo) (*Resp, error)
func GetActivity ¶
func GetActivity(params GetActivityParam) (*Resp, error)
func GetActivityByID ¶ added in v0.13.21
func GetActivityByID(params GetByIdParam) (*Resp, error)
func GetPlayer ¶ added in v0.13.9
func GetPlayer(params GetPlayerParam) (*Resp, error)
func GetSquads ¶ added in v0.13.5
func GetSquads(params GetSquadsParam) (*Resp, error)
func GetStatistic ¶ added in v0.13.18
func GetStatistic(params GetStatisticParam) (*Resp, error)
func ImportExcel ¶ added in v0.13.18
func ImportExcel(activityId string, f *multipart.FileHeader) (*Resp, error)
func UpdateActivity ¶
func UpdateActivity(params ActivityInfo) (*Resp, error)
func UpdateSquads ¶ added in v0.13.5
func UpdateSquads(params CreateSquadsRequest) (*Resp, error)
type SquadsInfo ¶ added in v0.13.5
type SquadsInfo struct { Id string `form:"id" json:"id" gorm:"primary_key;comment:id;"` Area string `form:"area" json:"area" gorm:"not null;type:varchar(1024);comment:地区"` SquadsName string `form:"squadsName" json:"squadsName" gorm:"not null;type:varchar(520);comment:战队名称"` Name string `form:"name" json:"name" gorm:"not null;type:varchar(100);comment:选手姓名"` IdCard string `form:"idCard" json:"idCard" gorm:"not null;type:varchar(100);comment:身份证"` Phone string `form:"phone" json:"phone" gorm:"not null;type:varchar(20);comment:手机"` State uint8 `form:"state" json:"state" gorm:"not null;comment:状态"` ActivityName string `form:"activityName" json:"activityName" gorm:"not null;type:varchar(100);comment:活动名称"` ActivityId string `form:"activityId" json:"activityId" gorm:"not null;type:varchar(32);comment:活动id"` TangentId string `json:"tangentId" form:"tangentId" gorm:"not null;type:varchar(32);comment:组织id"` CreateBy string `json:"createBy" form:"createBy"` }
type StatisticInfo ¶ added in v0.13.18
Click to show internal directories.
Click to hide internal directories.