change layout
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
package dao
|
||||
|
||||
// Services 项目表
|
||||
type Services struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:varchar(255);comment:项目描述;NOT NULL" json:"name"`
|
||||
Status uint8 `gorm:"column:status;type:tinyint(1);default:1;comment:状态,1为正常,2为禁用;NOT NULL" json:"status"`
|
||||
Description string `json:"description" gorm:"description"` // 描述
|
||||
Reason string `json:"reason" gorm:"reason"` // 理由
|
||||
AdminId int64 `gorm:"column:admin_id;type:int(11);comment:操作人员ID" json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(255);comment:操作人员姓名" json:"admin_name"`
|
||||
}
|
||||
|
||||
// ServicesStatus 修改状态
|
||||
type ServicesStatus struct {
|
||||
Id int64 `json:"id"`
|
||||
Status uint8 `json:"status"`
|
||||
Reason string `json:"reason" gorm:"reason"` // 理由
|
||||
AdminId int64 `json:"admin_id"`
|
||||
AdminName string `gorm:"column:admin_name;type:varchar(100);comment:操作人姓名" json:"admin_name"`
|
||||
}
|
||||
|
||||
type ServicesNames struct {
|
||||
Id int64 `gorm:"column:id;type:int(11);primary_key;AUTO_INCREMENT" json:"id"`
|
||||
Name string `gorm:"column:name;type:varchar(255);comment:项目描述;NOT NULL" json:"name"`
|
||||
Description string `json:"description" gorm:"description"` // 描述
|
||||
}
|
||||
Reference in New Issue
Block a user