123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- package model
- import (
- "go-common/library/time"
- )
- type CActivity struct {
- ID int64 `json:"id"`
- Name string `json:"name" form:"name" validate:"required"`
- Creator string `json:"creator"`
- SignedStart time.Time `json:"signed_start" form:"signed_start" validate:"required"`
- SignedEnd time.Time `json:"signed_end" form:"signed_end" validate:"required"`
- SignUp int `json:"sign_up" form:"sign_up" default:"0"`
- SignUpStart time.Time `json:"sign_up_start" form:"sign_up_start" validate:"required"`
- SignUpEnd time.Time `json:"sign_up_end" form:"sign_up_end" validate:"required"`
- Object int `json:"object" form:"object" validate:"required"`
- UploadStart time.Time `json:"upload_start" form:"upload_start" validate:"required"`
- UploadEnd time.Time `json:"upload_end" form:"upload_end" validate:"required"`
- WinType int `json:"win_type" form:"win_type" validate:"required"`
- RequireItems string `json:"require_items" form:"require_items" validate:"required"`
- RequireValue int64 `json:"require_value" form:"require_value" validate:"required"`
- StatisticsStart time.Time `json:"statistics_start" form:"statistics_start" validate:"required"`
- StatisticsEnd time.Time `json:"statistics_end" form:"statistics_end" validate:"required"`
- BonusType int `json:"bonus_type" form:"bonus_type" validate:"required"`
- BonusMoney []int64 `json:"bonus_money" form:"bonus_money,split" validate:"required"`
- BonusTime time.Time `json:"bonus_time" form:"bonus_time" validate:"required"`
- ProgressFrequency int `json:"progress_frequency" form:"progress_frequency" validate:"required"`
- UpdatePage int `json:"update_page" form:"update_page" default:"0"`
- ProgressStart time.Time `json:"progress_start" form:"progress_start" validate:"required"`
- ProgressEnd time.Time `json:"progress_end" form:"progress_end" validate:"required"`
- ProgressSync int `json:"progress_sync" form:"progress_sync" default:"0"`
- BonusQuery int `json:"bonus_query" form:"bonus_query" default:"0"`
- BonusQuerStart time.Time `json:"bonus_query_start" form:"bonus_query_start" validate:"required"`
- BonusQueryEnd time.Time `json:"bonus_query_end" form:"bonus_query_end" validate:"required"`
- Background string `json:"background" form:"background" validate:"required"`
- WinDesc string `json:"win_desc" form:"win_desc" validate:"required"`
- UnwinDesc string `json:"unwin_desc" form:"unwin_desc" validate:"required"`
- Details string `json:"details" form:"details" validate:"required"`
- State int `json:"state"`
- Enrolment int `json:"enrolment"`
- WinNum int `json:"win_num"`
- }
- type BonusRank struct {
- ID int64
- Rank int
- Money int64
- }
- type UpActivity struct {
- MID int64 `json:"mid"`
- AIDs string `json:"aids"`
- AIDNum int64 `json:"aid_num"`
- Nickname string `json:"nickname"`
- Bonus int64 `json:"bonus"`
- Rank int `json:"rank"`
- SignUpTime time.Time `json:"sign_up_time"`
- SuccessTime time.Time `json:"success_time"`
- State int `json:"state"`
- }
|