mirror of
https://gitee.com/XM-GO/PandaX.git
synced 2026-04-23 02:48:34 +08:00
【feature】添加组织数据读取权限
This commit is contained in:
@@ -21,7 +21,7 @@ func (l *LogLoginApi) GetLoginLogList(rc *restfulx.ReqCtx) {
|
||||
rc.ResData = model.ResultPage{
|
||||
Total: total,
|
||||
PageNum: int64(pageNum),
|
||||
PageSize: int64(pageNum),
|
||||
PageSize: int64(pageSize),
|
||||
Data: list,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ func (l *LogOperApi) GetOperLogList(rc *restfulx.ReqCtx) {
|
||||
rc.ResData = model.ResultPage{
|
||||
Total: total,
|
||||
PageNum: int64(pageNum),
|
||||
PageSize: int64(pageNum),
|
||||
PageSize: int64(pageSize),
|
||||
Data: list,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,5 +20,8 @@ type LogLogin struct {
|
||||
Params string `json:"params" gorm:"-"`
|
||||
Remark string `json:"remark" gorm:"type:varchar(255);"` //备注
|
||||
Msg string `json:"msg" gorm:"type:varchar(255);"`
|
||||
OrgId int64 `json:"orgId" gorm:"type:int;"`
|
||||
model.BaseModel
|
||||
|
||||
RoleId int64 `gorm:"-"` // 角色数据权限
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import (
|
||||
|
||||
type LogOper struct {
|
||||
OperId int64 `json:"operId" gorm:"primary_key;AUTO_INCREMENT"` //主键
|
||||
OrgId int64 `json:"orgId" gorm:"type:int;comment:机构ID"`
|
||||
Title string `json:"title" gorm:"type:varchar(128);comment:操作的模块"`
|
||||
BusinessType string `json:"businessType" gorm:"type:varchar(1);comment:0其它 1新增 2修改 3删除"`
|
||||
Method string `json:"method" gorm:"type:varchar(255);comment:请求方法"`
|
||||
@@ -16,4 +17,6 @@ type LogOper struct {
|
||||
OperParam string `json:"operParam" gorm:"type:varchar(255);comment:请求参数"` //
|
||||
Status string `json:"status" gorm:"type:varchar(1);comment:0=正常,1=异常"`
|
||||
model.BaseModel
|
||||
|
||||
RoleId int64 `gorm:"-"` // 角色数据权限
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user