feat: 从冻结 GoAdmin 源码重建 Sense 骨架 (#61)

This commit is contained in:
QiuSW
2026-08-14 11:11:44 +08:00
parent 27f180cec0
commit 96740834d6
702 changed files with 74611 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
package models
import "git.ilapage.cn/ila/yovision/Sense/server/common/models"
type SysPost struct {
PostId int `gorm:"primaryKey;autoIncrement" json:"postId"` //岗位编号
PostName string `gorm:"size:128;" json:"postName"` //岗位名称
PostCode string `gorm:"size:128;" json:"postCode"` //岗位代码
Sort int `gorm:"size:4;" json:"sort"` //岗位排序
Status int `gorm:"size:4;" json:"status"` //状态
Remark string `gorm:"size:255;" json:"remark"` //描述
models.ControlBy
models.ModelTime
DataScope string `gorm:"-" json:"dataScope"`
Params string `gorm:"-" json:"params"`
}
func (*SysPost) TableName() string {
return "sys_post"
}
func (e *SysPost) Generate() models.ActiveRecord {
o := *e
return &o
}
func (e *SysPost) GetId() interface{} {
return e.PostId
}