|
@@ -1,29 +1,28 @@
|
|
|
package models
|
|
package models
|
|
|
|
|
|
|
|
import (
|
|
import (
|
|
|
- "time"
|
|
|
|
|
- //__import_packages__
|
|
|
|
|
|
|
+//__import_packages__
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
type SysDataPermissionDetail struct {
|
|
type SysDataPermissionDetail struct {
|
|
|
//主键
|
|
//主键
|
|
|
- Id string `xorm:"'id' varchar(36) pk notnull "json:"id"`
|
|
|
|
|
|
|
+ Id string `xorm:"'id' varchar(36) pk notnull "json:"id"`
|
|
|
//数据权限表ID
|
|
//数据权限表ID
|
|
|
- DataPermissionId string `xorm:"'data_permission_id' varchar(36) notnull "json:"data_permission_id"`
|
|
|
|
|
|
|
+ DataPermissionId string `xorm:"'data_permission_id' varchar(36) notnull "json:"data_permission_id"`
|
|
|
//角色ID
|
|
//角色ID
|
|
|
- RoleId string `xorm:"'role_id' varchar(36) notnull "json:"role_id"`
|
|
|
|
|
|
|
+ RoleId string `xorm:"'role_id' varchar(36) notnull "json:"role_id"`
|
|
|
//权限规则
|
|
//权限规则
|
|
|
- Rule string `xorm:"'rule' varchar(1000) notnull "json:"rule"`
|
|
|
|
|
|
|
+ Rule string `xorm:"'rule' varchar(1000) notnull "json:"rule"`
|
|
|
//创建人
|
|
//创建人
|
|
|
- CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
|
|
|
|
|
|
|
+ CreateBy string `xorm:"'create_by' varchar(36) notnull "json:"create_by"`
|
|
|
//创建时间
|
|
//创建时间
|
|
|
- CreateTime time.Time `xorm:"'create_time' notnull "json:"create_time"`
|
|
|
|
|
|
|
+ CreateTime LocalTime `xorm:"'create_time' notnull "json:"create_time"`
|
|
|
//最后更新人
|
|
//最后更新人
|
|
|
- LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
|
|
|
|
|
|
|
+ LastUpdateBy string `xorm:"'last_update_by' varchar(36) notnull "json:"last_update_by"`
|
|
|
//最后更新时间
|
|
//最后更新时间
|
|
|
- LastUpdateTime int64 `xorm:"'last_update_time' notnull "json:"last_update_time"`
|
|
|
|
|
|
|
+ LastUpdateTime int64 `xorm:"'last_update_time' notnull "json:"last_update_time"`
|
|
|
//是否删除 1:删除 0:正常
|
|
//是否删除 1:删除 0:正常
|
|
|
- DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
|
|
|
|
|
|
|
+ DelFlag int32 `xorm:"'del_flag' notnull "json:"del_flag"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func (t *SysDataPermissionDetail) TableName() string {
|
|
func (t *SysDataPermissionDetail) TableName() string {
|