mirror of
https://github.com/tiger1103/gfast.git
synced 2026-09-21 02:04:07 +00:00
cms前端参数修复
This commit is contained in:
@@ -24,7 +24,7 @@ type SelectPageReq struct {
|
||||
func LoginLogListByPage(req *SelectPageReq) (total, page int, list []*Entity, err error) {
|
||||
model := Model
|
||||
page = req.PageNum
|
||||
order := "login_time DESC"
|
||||
order := "info_id DESC"
|
||||
|
||||
if req.LoginName != "" {
|
||||
model = model.Where("login_name like ?", "%"+req.LoginName+"%")
|
||||
|
||||
@@ -75,7 +75,7 @@ func Add(user *user.Entity, menu *auth_rule.Entity, url *url.URL,
|
||||
//操作日志列表
|
||||
func ListByPage(req *SelectPageReq) (total, page int, list []*Entity, err error) {
|
||||
model := Model
|
||||
order := "oper_time DESC"
|
||||
order := "oper_id DESC"
|
||||
if req != nil {
|
||||
if req.OperName != "" {
|
||||
model = model.Where("oper_name like ?", "%"+req.OperName+"%")
|
||||
|
||||
Reference in New Issue
Block a user