|
@@ -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"`
|
|
208
|
+ Module int8 `json:"module"`
|
|
209
|
+ Name string `json:"name"`
|
|
210
|
+ Urlfor string `json:"urlfor"`
|
|
211
|
+ MenuIconClass string `gorm:"menu_icon_class" json:"menu_icon_class"`
|
|
212
|
+ SuperAdminExclusive int8 `gorm:"super_admin_exclusive" json:"super_admin_exclusive"`
|
|
213
|
+ Listorder int `json:"-"`
|
|
214
|
+ Status int8 `json:"status"`
|
|
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"`
|
|
222
|
+ Childs []*Purview `gorm:"-" json:"childs"`
|
|
223
|
+}
|
|
224
|
+
|
|
225
|
+func (PurviewTmp) TableName() string {
|
|
226
|
+ return "sgj_users.sgj_user_purview"
|
|
227
|
+}
|