Skip to content

Commit

Permalink
update gf v1.11.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangbiao committed Jan 13, 2020
1 parent c9ce2ca commit c5286c8
Show file tree
Hide file tree
Showing 10 changed files with 37 additions and 31 deletions.
4 changes: 4 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
Change Log 更新说明
------------------------------
## 2020-01-13 v1.0.1
1. gf升级为V1.11.2,修改即将废弃函数
2. gtoken升级为v1.3.11

## 2019-12-24 v1.0.0
1. 发布gmanger v1.0.0 支持前后端分离

Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module gmanager

require (
github.com/goflyfox/gtoken v1.3.10
github.com/goflyfox/gtoken v1.3.11
github.com/gogf/gf v1.11.2
)

Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ github.com/gf-third/yaml v1.0.1 h1:pqD4ix+65DqGphU1MDnToPZfGYk0tuuwRzuTSl3g0d0=
github.com/gf-third/yaml v1.0.1/go.mod h1:t443vj0txEw3+E0MOtkr83kt+PrZg2I8SRuYfn85NM0=
github.com/goflyfox/gtoken v1.3.10 h1:mAjrjtgH+/KKBFJ4co+MVfcIVnspONwF0vH05CRrJ2g=
github.com/goflyfox/gtoken v1.3.10/go.mod h1:2oUK27DG/F+jVPCGtEWsKL5aM4zmCIg9/VREkGhIrw0=
github.com/goflyfox/gtoken v1.3.11 h1:dttowT4XrxtDrmpNYCtF23mtpNW2keNR/Me5ULPsQjw=
github.com/goflyfox/gtoken v1.3.11/go.mod h1:2oUK27DG/F+jVPCGtEWsKL5aM4zmCIg9/VREkGhIrw0=
github.com/gogf/gf v1.11.2 h1:fGXRk06DnR2w4tWTZu+aZbBmAVYEnB4FtDRXKMqPp6Q=
github.com/gogf/gf v1.11.2/go.mod h1:/37gncPmuM06D4YSqiDze9GsasDtF2QnWkUfKeiGW/Q=
github.com/gomodule/redigo v2.0.0+incompatible h1:K/R+8tc58AaqLkqG2Ol3Qk+DR/TlNuhuh457pBFPtt0=
Expand Down
4 changes: 2 additions & 2 deletions module/component/middle/MiddlewareLog.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ func MiddlewareLog(r *ghttp.Request) {
}

if r.Method == "GET" {
params = r.GetQueryMap()
params = r.GetMap()
} else if r.Method == "POST" {
params = r.GetQueryMap()
params = r.GetMap()
} else {
base.Error(r, "Request Method is ERROR! ")
return
Expand Down
10 changes: 5 additions & 5 deletions module/system/configAction.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (action *ConfigAction) Delete(r *ghttp.Request) {
// path: /save
func (action *ConfigAction) Save(r *ghttp.Request) {
model := SysConfig{}
err := gconv.Struct(r.GetQueryMap(), &model)
err := gconv.Struct(r.GetMap(), &model)
if err != nil {
glog.Error(actionNameConfig+" save struct error", err)
base.Error(r, "save error")
Expand Down Expand Up @@ -89,7 +89,7 @@ func (action *ConfigAction) Save(r *ghttp.Request) {

// path: /list
func (action *ConfigAction) List(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysConfig{}

list := model.List(&form)
Expand All @@ -98,7 +98,7 @@ func (action *ConfigAction) List(r *ghttp.Request) {

// path: /page
func (action *ConfigAction) Page(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysConfig{}

page := model.Page(&form)
Expand All @@ -113,7 +113,7 @@ func (action *ConfigAction) Page(r *ghttp.Request) {

// path: /jqgrid
func (action *ConfigAction) Jqgrid(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysConfig{}

page := model.Page(&form)
Expand All @@ -127,7 +127,7 @@ func (action *ConfigAction) Jqgrid(r *ghttp.Request) {

// path: /type
func (action *ConfigAction) Type(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysConfig{}

//userId := base.GetUser(r).Id
Expand Down
8 changes: 4 additions & 4 deletions module/system/departmentAction.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (action *DepartmentAction) Delete(r *ghttp.Request) {
// path: /save
func (action *DepartmentAction) Save(r *ghttp.Request) {
model := SysDepartment{}
err := gconv.Struct(r.GetQueryMap(), &model)
err := gconv.Struct(r.GetMap(), &model)
if err != nil {
glog.Error(actionNameDepartment+" save struct error", err)
base.Error(r, "save error")
Expand Down Expand Up @@ -95,7 +95,7 @@ func (action *DepartmentAction) Save(r *ghttp.Request) {

// path: /list
func (action *DepartmentAction) List(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysDepartment{}

list := model.List(&form)
Expand All @@ -104,7 +104,7 @@ func (action *DepartmentAction) List(r *ghttp.Request) {

// path: /page
func (action *DepartmentAction) Page(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysDepartment{}

page := model.Page(&form)
Expand All @@ -119,7 +119,7 @@ func (action *DepartmentAction) Page(r *ghttp.Request) {

// path: /jqgrid
func (action *DepartmentAction) Jqgrid(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysDepartment{}

page := model.Page(&form)
Expand Down
8 changes: 4 additions & 4 deletions module/system/logAction.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ func (action *LogAction) Delete(r *ghttp.Request) {
// path: /save
func (action *LogAction) Save(r *ghttp.Request) {
model := SysLog{}
err := gconv.Struct(r.GetQueryMap(), &model)
err := gconv.Struct(r.GetMap(), &model)
if err != nil {
glog.Error(actionNameLog+" save struct error", err)
base.Error(r, "save error")
Expand Down Expand Up @@ -89,7 +89,7 @@ func (action *LogAction) Save(r *ghttp.Request) {

// path: /list
func (action *LogAction) List(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysLog{}

list := model.List(&form)
Expand All @@ -98,7 +98,7 @@ func (action *LogAction) List(r *ghttp.Request) {

// path: /page
func (action *LogAction) Page(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysLog{}

page := model.Page(&form)
Expand All @@ -113,7 +113,7 @@ func (action *LogAction) Page(r *ghttp.Request) {

// path: /jqgrid
func (action *LogAction) Jqgrid(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysLog{}

page := model.Page(&form)
Expand Down
10 changes: 5 additions & 5 deletions module/system/menuAction.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func (action *MenuAction) Delete(r *ghttp.Request) {
// path: /save
func (action *MenuAction) Save(r *ghttp.Request) {
model := SysMenu{}
err := gconv.Struct(r.GetQueryMap(), &model)
err := gconv.Struct(r.GetMap(), &model)
if err != nil {
glog.Error(actionNameMenu+" save struct error", err)
base.Error(r, "save error")
Expand Down Expand Up @@ -104,7 +104,7 @@ func (action *MenuAction) Save(r *ghttp.Request) {

// path: /tree
func (action *MenuAction) Tree(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysMenu{}

list := model.List(&form)
Expand All @@ -113,7 +113,7 @@ func (action *MenuAction) Tree(r *ghttp.Request) {

// path: /list
func (action *MenuAction) List(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysMenu{}

list := model.List(&form)
Expand All @@ -122,7 +122,7 @@ func (action *MenuAction) List(r *ghttp.Request) {

// path: /page
func (action *MenuAction) Page(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysMenu{}

page := model.Page(&form)
Expand All @@ -137,7 +137,7 @@ func (action *MenuAction) Page(r *ghttp.Request) {

// path: /jqgrid
func (action *MenuAction) Jqgrid(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysMenu{}

page := model.Page(&form)
Expand Down
10 changes: 5 additions & 5 deletions module/system/roleAction.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ func (action *RoleAction) Delete(r *ghttp.Request) {
// path: /save
func (action *RoleAction) Save(r *ghttp.Request) {
model := SysRole{}
err := gconv.Struct(r.GetQueryMap(), &model)
err := gconv.Struct(r.GetMap(), &model)
if err != nil {
glog.Error(actionNameRole+" save struct error", err)
base.Error(r, "save error")
Expand Down Expand Up @@ -98,7 +98,7 @@ func (action *RoleAction) Save(r *ghttp.Request) {

// path: /list
func (action *RoleAction) List(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysRole{}

list := model.List(&form)
Expand All @@ -107,7 +107,7 @@ func (action *RoleAction) List(r *ghttp.Request) {

// path: /page
func (action *RoleAction) Page(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysRole{}

page := model.Page(&form)
Expand All @@ -122,7 +122,7 @@ func (action *RoleAction) Page(r *ghttp.Request) {

// path: /jqgrid
func (action *RoleAction) Jqgrid(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysRole{}

page := model.Page(&form)
Expand All @@ -140,7 +140,7 @@ func (action *RoleAction) Info(r *ghttp.Request) {
if roleId == 0 {
base.Fail(r, "参数错误")
}
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
form.SetParam("roleId", gconv.String(roleId))

// 选择的列表
Expand Down
10 changes: 5 additions & 5 deletions module/system/userAction.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ func (action *UserAction) Delete(r *ghttp.Request) {
// path: /save
func (action *UserAction) Save(r *ghttp.Request) {
model := SysUser{}
err := gconv.Struct(r.GetQueryMap(), &model)
err := gconv.Struct(r.GetMap(), &model)
if err != nil {
glog.Error(actionNameUser+" save struct error", err)
base.Error(r, "save error")
Expand Down Expand Up @@ -108,7 +108,7 @@ func (action *UserAction) Save(r *ghttp.Request) {

// path: /list
func (action *UserAction) List(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysUser{}

list := model.List(&form)
Expand All @@ -117,7 +117,7 @@ func (action *UserAction) List(r *ghttp.Request) {

// path: /page
func (action *UserAction) Page(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysUser{}

page := model.Page(&form)
Expand All @@ -132,7 +132,7 @@ func (action *UserAction) Page(r *ghttp.Request) {

// path: /jqgrid
func (action *UserAction) Jqgrid(r *ghttp.Request) {
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
model := SysUser{}

page := model.Page(&form)
Expand All @@ -150,7 +150,7 @@ func (action *UserAction) RoleInfo(r *ghttp.Request) {
if userId == 0 {
base.Fail(r, "参数错误")
}
form := base.NewForm(r.GetQueryMap())
form := base.NewForm(r.GetMap())
form.SetParam("userId", gconv.String(userId))

// 角色列表
Expand Down

0 comments on commit c5286c8

Please sign in to comment.