123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129 |
- package model
- import (
- libTime "go-common/library/time"
- )
- const (
-
- TimeLayout = "2006-01-02 15:04:05"
- )
- type NewbieLetterReq struct {
- Aid int64 `form:"aid" validate:"required"`
- Mid int64
- }
- type Category struct {
- ID int64 `json:"id"`
- Pid int64 `json:"pid"`
- Name string `json:"name"`
- }
- type CategoriesRes struct {
- Code int `json:"code"`
- Data map[int64]*Category `json:"data"`
- Message string `json:"message"`
- }
- type Activity struct {
- ID int64 `json:"-"`
- AndroidUrl string `json:"-"`
- H5Cover string `json:"-"`
- ActUrl string `json:"act_url"`
- IosUrl string `json:"-"`
- Cover string `json:"cover"`
- Type int32 `json:"type"`
- }
- type ActivitiesRes struct {
- Code int `json:"code"`
- Data []*Activity `json:"data"`
- Message string `json:"message"`
- TTL int64 `json:"ttl"`
- }
- type VideoUpArchive struct {
- Aid int64 `json:"aid"`
- Mid int64 `json:"mid"`
- Tid int64 `json:"tid"`
- Title string `json:"title"`
- PTime int64 `json:"ptime"`
- }
- type VideoUp struct {
- Archive *VideoUpArchive `json:"archive"`
-
- }
- type VideoUpRes struct {
- Code int `json:"code"`
- Data *VideoUp `json:"data"`
- Message string `json:"message"`
- }
- type Relation struct {
- Mid int64 `json:"mid"`
- Attribute int `json:"attribute"`
- Face string `json:"face"`
- Name string `json:"name"`
- }
- type RelationsRes struct {
- Code int `json:"code"`
- Data map[int64]*Relation `json:"data"`
- Message string `json:"message"`
- TTL int64 `json:"ttl"`
- }
- type RecommendUp struct {
- ID int64 `json:"id"`
- Mid int64 `json:"mid"`
- Tid int64 `json:"tid"`
- SubTid int64 `json:"sub_tid"`
- Reason string `json:"reason"`
- Operator string `json:"operator"`
- CTime libTime.Time `json:"ctime"`
- MTime libTime.Time `json:"mtime"`
- }
- type NewbieLetterArchive struct {
- Mid int64 `json:"-"`
- Tid int64 `json:"-"`
- Title string `json:"title"`
- PTime string `json:"ptime"`
- }
- type NewbieLetterUpInfo struct {
- Mid int64 `json:"mid"`
- Name string `json:"name"`
- }
- type NewbieLetterRes struct {
- UperInfo *NewbieLetterUpInfo `json:"uper_info"`
- Activities []*Activity `json:"activities"`
- Relations []*Relation `json:"relations"`
- Archive *NewbieLetterArchive `json:"archive"`
- Talent string `json:"talent"`
- Area string `json:"area"`
- }
|