feat: 初始化配置中心项目
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package model
|
||||
|
||||
import "time"
|
||||
|
||||
type Application struct {
|
||||
Id int `xorm:"int autoincr pk" json:"id"`
|
||||
GroupId *int `xorm:"int" json:"groupId"`
|
||||
ParentId *int `xorm:"int" json:"parentId"`
|
||||
Name string `xorm:"varchar(32)" json:"name"`
|
||||
Code string `xorm:"varchar(32)" json:"code"`
|
||||
ServiceId string `xorm:"varchar(64)" json:"serviceId"`
|
||||
IsModule bool `xorm:"tinyint(1) default 1" json:"isModule"`
|
||||
OwnerId *int `xorm:"int" json:"ownerId"`
|
||||
OwnerName string `xorm:"varchar(16)" json:"ownerName"`
|
||||
Remarks string `xorm:"text" json:"remarks"`
|
||||
Enabled bool `xorm:"tinyint(1) default 1" json:"enabled"`
|
||||
CreatedAt *time.Time `xorm:"datetime" json:"createdAt"`
|
||||
CreatedBy string `xorm:"varchar(32)" json:"createdBy"`
|
||||
UpdatedAt *time.Time `xorm:"datetime" json:"updatedAt"`
|
||||
UpdatedBy string `xorm:"varchar(32)" json:"updatedBy"`
|
||||
ParentName string `xorm:"-" json:"parentName,omitempty"`
|
||||
FullName string `xorm:"-" json:"fullName,omitempty"`
|
||||
GroupName string `xorm:"-" json:"groupName,omitempty"`
|
||||
}
|
||||
Reference in New Issue
Block a user