Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Activity ¶
type Activity struct { gorm.Model UserID uint `gorm:"column:user_id;not null;comment:组织者ID" json:"user_id"` // 组织者ID GroupID uint `gorm:"column:group_id;not null;comment:群组ID" json:"group_id"` // 群组ID Kind uint `gorm:"column:kind;not null;default:1;comment:活动分类:1羽毛球,2篮球,3足球,4聚餐..." json:"kind"` // 活动分类:1羽毛球,2篮球,3足球,4聚餐... Type uint `gorm:"column:type;not null;default:1;comment:活动类型:1全局保护,2全局公开,3群组" json:"type"` // 活动类型:1全局保护,2全局公开,3群组 Title string `gorm:"column:title;not null;comment:活动标题" json:"title"` // 活动标题 Description string `gorm:"column:description;not null;comment:活动描述" json:"description"` // 活动描述 Quota uint `gorm:"column:quota;not null;default:1;comment:报名名额" json:"quota"` // 报名名额 Waiting uint `gorm:"column:waiting;not null;default:1;comment:候补数量限制" json:"waiting"` // 候补数量限制 Stage uint `` // 活动阶段:1报名阶段,2活动阶段,3正常完成和结算,4手动终止活动 /* 143-byte string literal not displayed */ FeeType uint `` // 结算方式:1免费,2活动前,3活动后男女平均,4活动后男固定|女平摊,5活动后男平摊|女固定 /* 180-byte string literal not displayed */ FeeMale uint `gorm:"column:fee_male;not null;comment:男费用,单位:分" json:"fee_male"` // 男费用,单位:分 FeeFemale uint `gorm:"column:fee_female;not null;comment:女费用,单位:分" json:"fee_female"` // 女费用,单位:分 Address string `gorm:"column:address;comment:活动地址" json:"address"` // 活动地址 Ahead uint `gorm:"column:ahead;not null;comment:可提前取消时间(小时)" json:"ahead"` // 可提前取消时间(小时) BeginAt time.Time `gorm:"column:begin_at;not null;comment:开始时间" json:"begin_at"` // 开始时间 EndAt time.Time `gorm:"column:end_at;not null;comment:结束时间" json:"end_at"` // 结束时间 }
type ActivityUser ¶
type ActivityUser struct { gorm.Model ActivityID uint `gorm:"column:activity_id;not null;comment:活动id" json:"activity_id"` // 活动id UserID uint `gorm:"column:user_id;not null;comment:报名用户id" json:"user_id"` // 报名用户id Nick string `gorm:"column:nick;comment:报名昵称" json:"nick"` // 报名昵称 IsFriend uint8 `gorm:"column:is_friend;not null;default:1;comment:是否朋友" json:"is_friend"` // 是否朋友 }
ActivityUser mapped from table <activity_user>
type Group ¶
type Group struct { gorm.Model Scores uint `gorm:"column:scores;not null;comment:积分" json:"scores"` // 积分 Level uint `gorm:"column:level;not null;default:1;comment:群组等级" json:"level"` // 群组等级 Name string `gorm:"column:name;not null;comment:群组名称" json:"name"` // 群组名称 Logo string `gorm:"column:logo;comment:群组LOGO" json:"logo"` // 群组LOGO Notice string `gorm:"column:notice;comment:群组公告" json:"notice"` // 群组公告 Address string `gorm:"column:address;comment:群组总部地址" json:"address"` // 群组总部地址 }
Group mapped from table <group>
type GroupApplication ¶
type GroupApplication struct { gorm.Model UserID uint `gorm:"column:user_id;not null;comment:用户id" json:"user_id"` // 用户id GroupID uint `gorm:"column:group_id;not null;comment:群组id" json:"group_id"` // 群组id }
GroupApplication mapped from table <group_application>
type GroupMember ¶
type GroupMember struct { ID uint `gorm:"column:id;primaryKey;autoIncrement:true;comment:成员id" json:"id"` // 成员id GroupID uint `gorm:"column:group_id;not null;comment:群组id" json:"group_id"` // 群组id UserID uint `gorm:"column:user_id;not null;comment:用户id" json:"user_id"` // 用户id Scores uint `gorm:"column:scores;not null;comment:积分" json:"scores"` // 积分 Position uint `gorm:"column:position;not null;default:1;comment:群组职位" json:"position"` // 群组职位 Nick string `gorm:"column:nick;not null;comment:群组昵称" json:"nick"` // 群组昵称 EnterAt time.Time `gorm:"column:enter_at;comment:进入群组时间" json:"enter_at"` // 进入群组时间 CreateAt time.Time `gorm:"column:create_at;not null;comment:创建时间" json:"create_at"` // 创建时间 UpdateAt time.Time `gorm:"column:update_at;not null;comment:更新时间" json:"update_at"` // 更新时间 DeleteAt time.Time `gorm:"column:delete_at;comment:删除时间" json:"delete_at"` // 删除时间 }
GroupMember mapped from table <group_member>
type MatchMember ¶
type User ¶
type User struct { gorm.Model Username string `gorm:"column:username;not null;comment:用户名" json:"username"` // 用户名 Password string `gorm:"column:password;not null;default:123456;comment:密码" json:"password"` // 密码 Scores uint `gorm:"column:scores;not null;comment:积分" json:"scores"` // 积分 Token string `gorm:"column:token;not null;comment:token" json:"token"` // token WxToken string `gorm:"column:wx_token;not null;comment:微信session_key" json:"wx_token"` // 微信session_key WxNick string `gorm:"column:wx_nick;not null;comment:微信昵称" json:"wx_nick"` // 微信昵称 Nick string `gorm:"column:nick;not null;comment:昵称" json:"nick"` // 昵称 Avatar string `gorm:"column:avatar;comment:头像" json:"avatar"` // 头像 Gender uint8 `gorm:"column:gender;not null;default:1;comment:性别:1男,2女,3自定义" json:"gender"` // 性别:1男,2女,3自定义 Phone string `gorm:"column:phone;comment:手机号码" json:"phone"` // 手机号码 Email string `gorm:"column:email;comment:邮箱" json:"email"` // 邮箱 Addr string `gorm:"column:addr;comment:住址" json:"addr"` // 住址 IP string `gorm:"column:ip;default:0;comment:ip地址" json:"ip"` // ip地址 LoginAt time.Time `gorm:"column:login_at;comment:登录时间" json:"login_at"` // 登录时间 LogoutAt time.Time `gorm:"column:logout_at;comment:登出时间" json:"logout_at"` // 时间 }
User mapped from table <user>
Click to show internal directories.
Click to hide internal directories.