Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Circle ¶
type Circle struct { model.BaseModel UserID uint `json:"-" gorm:"index:circle_user_id_idx;column:user_id;not null"` Name string `json:"name" gorm:"column:name;unique;not null;size:30"` Avatar string `json:"avatar" gorm:"column:avatar;default:null"` Description string `json:"description" gorm:"column:description;not null;size:200"` Label string `json:"label" gorm:"column:label;default:null;size:50"` Rule string `json:"rule" gorm:"column:rule;not null;size:500"` }
圈子
type Member ¶
type Member struct { model.BaseModel UserID uint `json:"user_id" gorm:"index:circle_member_user_id_idx;column:user_id;not null"` CircleID uint `json:"circle_id" gorm:"index:circle_member_circle_id_idx;column:circle_id;not null"` Exp uint `json:"exp" gorm:"column:name;default:0"` Type string `json:"type" gorm:"column:type;default:'ORDINARY'"` }
圈子成员
Click to show internal directories.
Click to hide internal directories.