1.迁移表时添加字段注释

2.修复游客状态评论接口报空指针的问题
This commit is contained in:
wanghaima
2022-10-28 12:33:36 +08:00
parent 4c6ef05fbd
commit d3993a2f08
14 changed files with 123 additions and 120 deletions

View File

@@ -11,10 +11,10 @@ import (
type TeamMember struct {
TeamMemberId int `orm:"column(team_member_id);pk;auto;unique;" json:"team_member_id"`
TeamId int `orm:"column(team_id);type(int)" json:"team_id"`
MemberId int `orm:"column(member_id);type(int)" json:"member_id"`
TeamId int `orm:"column(team_id);type(int);description(团队id)" json:"team_id"`
MemberId int `orm:"column(member_id);type(int);description(成员id)" json:"member_id"`
// RoleId 角色0 创始人(创始人不能被移除) / 1 管理员/2 编辑者/3 观察者
RoleId conf.BookRole `orm:"column(role_id);type(int)" json:"role_id"`
RoleId conf.BookRole `orm:"column(role_id);type(int);description(RoleId 角色0 创始人-创始人不能被移除 / 1 管理员/2 编辑者/3 观察者)" json:"role_id"`
RoleName string `orm:"-" json:"role_name"`
Account string `orm:"-" json:"account"`
RealName string `orm:"-" json:"real_name"`