2023-06-16 11:04:13 +00:00
|
|
|
package gmodel
|
|
|
|
|
|
|
|
import (
|
|
|
|
"gorm.io/gorm"
|
|
|
|
)
|
|
|
|
|
|
|
|
// fs_department 部门表
|
|
|
|
type FsDepartment struct {
|
2023-06-16 11:29:48 +00:00
|
|
|
Id int64 `gorm:"primary_key;default:0;" json:"id"` // id
|
|
|
|
Name *string `gorm:"default:'';" json:"name"` // 部门名称
|
|
|
|
Status *int64 `gorm:"default:0;" json:"status"` // 状态 1正常0停用
|
|
|
|
Ctime *int64 `gorm:"default:0;" json:"ctime"` // 添加时间
|
|
|
|
ParentId *int64 `gorm:"default:0;" json:"parent_id"` // 父级id
|
2023-06-16 11:04:13 +00:00
|
|
|
}
|
|
|
|
type FsDepartmentModel struct{ db *gorm.DB }
|
|
|
|
|
|
|
|
func NewFsDepartmentModel(db *gorm.DB) *FsDepartmentModel { return &FsDepartmentModel{db} }
|