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,9 +11,9 @@ import (
type TeamRelationship struct {
TeamRelationshipId int `orm:"column(team_relationship_id);pk;auto;unique;" json:"team_relationship_id"`
BookId int `orm:"column(book_id)" json:"book_id"`
TeamId int `orm:"column(team_id)" json:"team_id"`
CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add" json:"create_time"`
BookId int `orm:"column(book_id);description(项目id)" json:"book_id"`
TeamId int `orm:"column(team_id);description(团队id)" json:"team_id"`
CreateTime time.Time `orm:"column(create_time);type(datetime);auto_now_add;description(创建时间)" json:"create_time"`
TeamName string `orm:"-" json:"team_name"`
MemberCount int `orm:"-" json:"member_count"`
BookMemberId int `orm:"-" json:"book_member_id"`