admin add edit status password items info
This commit is contained in:
@@ -2,13 +2,12 @@ package dao
|
||||
|
||||
import "pkg.local/utils"
|
||||
|
||||
// Project 项目表
|
||||
type Project struct {
|
||||
// Services 项目表
|
||||
type Services struct {
|
||||
Id int `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"`
|
||||
Remarks string `gorm:"column:remarks;type:varchar(255);default:'';comment:描述;NOT NULL" json:"remarks"`
|
||||
Logo string `gorm:"column:logo;type:varchar(255);default:'';comment:logo;NOT NULL" json:"logo"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:原因" json:"reason"`
|
||||
AdminId int `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"`
|
||||
@@ -16,13 +15,13 @@ type Project struct {
|
||||
UpdateTime utils.CustomTime `gorm:"column:update_time;type:datetime" json:"update_time"`
|
||||
}
|
||||
|
||||
type ProjectItems struct {
|
||||
Items []Project `json:"items"`
|
||||
Count int64 `json:"count"`
|
||||
type ServicesItems struct {
|
||||
Items []Services `json:"items"`
|
||||
Count int64 `json:"count"`
|
||||
}
|
||||
|
||||
// ProjectStatus 修改状态
|
||||
type ProjectStatus struct {
|
||||
// ServicesStatus 修改状态
|
||||
type ServicesStatus struct {
|
||||
Id int `json:"id"`
|
||||
Status uint8 `json:"status"`
|
||||
Reason string `gorm:"column:reason;type:varchar(255);comment:原因" json:"reason"`
|
||||
@@ -31,7 +30,7 @@ type ProjectStatus struct {
|
||||
UpdateTime utils.CustomTime `gorm:"column:update_time;type:datetime" json:"update_time"`
|
||||
}
|
||||
|
||||
type ProjectNameItems struct {
|
||||
type ServicesNameItems struct {
|
||||
Id int `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"`
|
||||
Logo string `gorm:"column:logo;type:varchar(255);default:'';comment:logo;NOT NULL" json:"logo"`
|
||||
|
||||
Reference in New Issue
Block a user