feat:优化项目信息

This commit is contained in:
henry
2021-12-01 11:31:55 +08:00
parent edb9253c86
commit c27e115517
21 changed files with 203 additions and 28 deletions

View File

@ -0,0 +1,18 @@
package model
// UserCompany 用户公司数据模型
type UserCompany struct {
Model
UID uint64 `gorm:"column:uid;type:int;default:0;comment:用户uuid" json:"-"`
CompanyID uint64 `gorm:"column:company_id;type:int(11);default:0;comment:公司模型ID" json:"-"`
ModelDeleted
ModelAt
}
func (m *UserCompany) TableName() string {
return "user_company"
}
func NewUserCompany() *UserCompany {
return &UserCompany{}
}