@ -246,6 +246,7 @@ func (o logic) Sure(args CompanySureApply) error {
ParentID: 0,
RootID: 0,
InvitationNo: baseCode.Encode(uint64(lastId)),
IsEnterprise: true,
}
if err := tx.Create(&info).Error; err != nil {
@ -39,6 +39,7 @@ type RecookUserInfoModel struct {
Identifier string
RootID uint
IsOffline bool `json:"is_offline"`
IsEnterprise bool `json:"is_enterprise"`
// TableName sets the insert table name for this struct type