|
@@ -201,3 +201,27 @@ type VmSecondWarehouse struct {
|
201
|
201
|
StorehouseOutId int64 `gorm:"column:storehouse_out_id" json:"storehouse_out_id" form:"storehouse_out_id"`
|
202
|
202
|
StorehouseAdminName string `gorm:"column:storehouse_admin_name" json:"storehouse_admin_name" form:"storehouse_admin_name"`
|
203
|
203
|
}
|
|
204
|
+
|
|
205
|
+type PurviewTmp struct {
|
|
206
|
+ Id int64 `gorm:"PRIMARY_KEY;AUTO_INCREMENT" json:"id"`
|
|
207
|
+ Parentid int64 `json:"pid"` // 父级ID
|
|
208
|
+ Module int8 `json:"module"` // 所属应用类型 1.病友经营;2.科普号;3.血透经营;4.慢病管理;
|
|
209
|
+ Name string `json:"name"` // 规则名称(也是菜单名)
|
|
210
|
+ Urlfor string `json:"urlfor"` // 规则唯一英文标识,(Controller.Method)
|
|
211
|
+ MenuIconClass string `gorm:"menu_icon_class" json:"menu_icon_class"` // 菜单图标的 css 样式
|
|
212
|
+ SuperAdminExclusive int8 `gorm:"super_admin_exclusive" json:"super_admin_exclusive"` // 是否为超级管理员专属 0否1是
|
|
213
|
+ Listorder int `json:"-"` // 排序ID
|
|
214
|
+ Status int8 `json:"status"` // 状态 0.无效 1.有效 2.禁用
|
|
215
|
+ CreateTime int64 `gorm:"column:ctime" json:"-"` // 创建时间
|
|
216
|
+ ModifyTime int64 `gorm:"column:mtime" json:"-"` // 修改时间
|
|
217
|
+ Purview []*Purview `gorm:"ForeignKey:Parentid;AssociationForeignKey:ID" json:"sub_purview"`
|
|
218
|
+ IconUrl string `gorm:"column:icon_url" json:"icon_url" form:"icon_url"`
|
|
219
|
+ Desc string `gorm:"column:desc" json:"desc" form:"desc"`
|
|
220
|
+ ParentUrl string `gorm:"column:parent_url" json:"parent_url" form:"parent_url"`
|
|
221
|
+ Link string `gorm:"-" json:"link"` // urlfor 解析后的链接
|
|
222
|
+ Childs []*Purview `gorm:"-" json:"childs"` // 子节点
|
|
223
|
+}
|
|
224
|
+
|
|
225
|
+func (PurviewTmp) TableName() string {
|
|
226
|
+ return "sgj_users.sgj_user_purview"
|
|
227
|
+}
|