mirror of
https://github.com/go-admin-team/go-admin.git
synced 2026-09-21 02:04:09 +00:00
24 lines
847 B
Go
24 lines
847 B
Go
package models
|
|
|
|
import (
|
|
"time"
|
|
)
|
|
|
|
type Post 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:"" json:"sort"` //岗位排序
|
|
Status string `gorm:"size:4;" json:"status"` //状态
|
|
Remark string `gorm:"size:255;" json:"remark"` //描述
|
|
CreateBy string `gorm:"size:128;" json:"createBy"`
|
|
UpdateBy string `gorm:"size:128;" json:"updateBy"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
UpdatedAt time.Time `json:"updatedAt"`
|
|
DeletedAt *time.Time `json:"deletedAt"`
|
|
}
|
|
|
|
func (Post) TableName() string {
|
|
return "sys_post"
|
|
}
|