migrate ✅ 优化migrate

This commit is contained in:
linwenxiang committed 2021-04-23 14:25:31 +08:00
1 parent e40047a88e
commit 1a111f0666
49 files changed
+677 -202

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
package models
type SysDept struct {
DeptId int `json:"deptId" gorm:"primaryKey;autoIncrement;"` //部门编码
ParentId int `json:"parentId" gorm:""` //上级部门
DeptPath string `json:"deptPath" gorm:"size:255;"` //
DeptName string `json:"deptName" gorm:"size:128;"` //部门名称
Sort int `json:"sort" gorm:""` //排序
Leader string `json:"leader" gorm:"size:128;"` //负责人
Phone string `json:"phone" gorm:"size:11;"` //手机
Email string `json:"email" gorm:"size:64;"` //邮箱
Status string `json:"status" gorm:"size:4;"` //状态
ControlBy
ModelTime
}
func (SysDept) TableName() string {
return "sys_dept"
}