houyaf před 3 roky
rodič
revize
110e2dd056

binární
build/go_build_main_go.exe


+ 10 - 10
pkg/system/controller/art_cat_controller.go

@@ -12,12 +12,12 @@ type ArtCatController struct {
 }
 
 func (c *ArtCatController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{artCatId:int64}", "GetById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{artCatId:int64}", "DeleteByID")
+    b.Handle("GET",     "/",                        "GetList"       )
+    b.Handle("GET",     "/page",                    "GetPage"       )
+    b.Handle("GET",     "/{artCatId:int64}",        "GetById"       )
+    b.Handle("POST",    "/add",                     "Create"        )
+    b.Handle("PUT",     "/update",                  "Update"        )
+    b.Handle("DELETE",  "/{artCatId:int64}",        "DeleteByID"    )
 }
 
 func (c *ArtCatController) GetList() *JsonResult {
@@ -51,8 +51,8 @@ func (c *ArtCatController) GetById(artCatId int64) *JsonResult {
 }
 
 func (c *ArtCatController) Create() *JsonResult {
-    ocId := c.GetCurOcId()
-    userId := c.GetCurUserId()
+    ocId    := c.GetCurOcId()
+    userId  := c.GetCurUserId()
 
     artCat := &datamodel.ArtCat{}
 
@@ -70,8 +70,8 @@ func (c *ArtCatController) Create() *JsonResult {
 }
 
 func (c *ArtCatController) Update() *JsonResult {
-    ocId := c.GetCurOcId()
-    userId := c.GetCurUserId()
+    ocId    := c.GetCurOcId()
+    userId  := c.GetCurUserId()
 
     artCat := &datamodel.ArtCat{}
     if err := c.Ctx.ReadJSON(artCat); err != nil {

+ 11 - 11
pkg/system/controller/art_controller.go

@@ -12,12 +12,12 @@ type ArtController struct {
 }
 
 func (c *ArtController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET",         "/",                     "GetList"    )
-    b.Handle("GET",         "/page",                 "GetPage"    )
-    b.Handle("GET",         "/{artId:int64}",         "GetById"    )
-    b.Handle("POST",         "/add",                 "Create"    )
-    b.Handle("PUT",         "/update",                 "Update"    )
-    b.Handle("DELETE",         "/{artId:int64}",         "DeleteByID")
+    b.Handle("GET",         "/",                        "GetList"   )
+    b.Handle("GET",         "/page",                    "GetPage"   )
+    b.Handle("GET",         "/{artId:int64}",           "GetById"   )
+    b.Handle("POST",        "/add",                     "Create"    )
+    b.Handle("PUT",         "/update",                  "Update"    )
+    b.Handle("DELETE",      "/{artId:int64}",           "DeleteByID")
 }
 
 func (c *ArtController) GetList() *JsonResult {
@@ -51,10 +51,10 @@ func (c *ArtController) GetById(artId int64) *JsonResult {
 }
 
 func (c *ArtController) Create() *JsonResult {
-    ocId := c.GetCurOcId()
-    userId := c.GetCurUserId()
-    art := datamodel.Art{}
+    ocId    := c.GetCurOcId()
+    userId  := c.GetCurUserId()
 
+    art     := datamodel.Art{}
     if err := c.Ctx.ReadJSON(&art); err != nil {
         return ResultErr("读取数据失败", nil)
     }
@@ -69,8 +69,8 @@ func (c *ArtController) Create() *JsonResult {
 }
 
 func (c *ArtController) Update() *JsonResult {
-    ocId := c.GetCurOcId()
-    userId := c.GetCurUserId()
+    ocId    := c.GetCurOcId()
+    userId  := c.GetCurUserId()
     art := &datamodel.Art{}
     if err := c.Ctx.ReadJSON(&art); err != nil {
         return ResultErr("读取数据失败", nil)

+ 2 - 2
pkg/system/controller/company_profile_controller.go

@@ -12,8 +12,8 @@ type CompanyProfileController struct {
 }
 
 func (c *CompanyProfileController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/",         "GetById")
-    b.Handle("PUT", "/update",     "Update")
+    b.Handle("GET", "/",            "GetById")
+    b.Handle("PUT", "/update",      "Update")
 }
 
 func (c *CompanyProfileController) GetById() *JsonResult {

+ 6 - 6
pkg/system/controller/doc_cat_controller.go

@@ -12,12 +12,12 @@ type DocCatController struct {
 }
 
 func (c *DocCatController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET",     "/",                     "GetList"    )
-    b.Handle("GET",     "/page",                 "GetPage"    )
-    b.Handle("GET",     "/{docCatId:int64}",     "GetById"    )
-    b.Handle("POST",     "/add",                 "Create"    )
-    b.Handle("PUT",     "/update",                 "Update"    )
-    b.Handle("DELETE",     "/{docCatId:int64}",     "DeleteByID")
+    b.Handle("GET",         "/",                        "GetList"    )
+    b.Handle("GET",         "/page",                    "GetPage"    )
+    b.Handle("GET",         "/{docCatId:int64}",        "GetById"    )
+    b.Handle("POST",        "/add",                     "Create"     )
+    b.Handle("PUT",         "/update",                  "Update"     )
+    b.Handle("DELETE",      "/{docCatId:int64}",        "DeleteByID" )
 }
 
 func (c *DocCatController) GetList() *JsonResult {

+ 6 - 6
pkg/system/controller/doc_dir_controller.go

@@ -12,12 +12,12 @@ type DocDirController struct {
 }
 
 func (c *DocDirController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{dirId:int64}", "GetById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{dirId:int64}", "DeleteByID")
+    b.Handle("GET",     "/",                    "GetList"       )
+    b.Handle("GET",     "/page",                "GetPage"       )
+    b.Handle("GET",     "/{dirId:int64}",       "GetById"       )
+    b.Handle("POST",    "/add",                 "Create"        )
+    b.Handle("PUT",     "/update",              "Update"        )
+    b.Handle("DELETE",  "/{dirId:int64}",       "DeleteByID"    )
 }
 
 func (c *DocDirController) GetList() *JsonResult {

+ 6 - 6
pkg/system/controller/doc_file_controller.go

@@ -12,12 +12,12 @@ type DocFileController struct {
 }
 
 func (c *DocFileController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{fileId:int64}", "GetById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{fileId:int64}", "DeleteByID")
+    b.Handle("GET",         "/",                        "GetList"   )
+    b.Handle("GET",         "/page",                    "GetPage"   )
+    b.Handle("GET",         "/{fileId:int64}",          "GetById"   )
+    b.Handle("POST",        "/add",                     "Create"    )
+    b.Handle("PUT",         "/update",                  "Update"    )
+    b.Handle("DELETE",      "/{fileId:int64}",          "DeleteByID")
 }
 
 func (c *DocFileController) GetList() *JsonResult {

+ 6 - 6
pkg/system/controller/group_cat_controller.go

@@ -12,12 +12,12 @@ type GroupCatController struct {
 }
 
 func (c *GroupCatController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{groupCatId:int64}", "GetById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{groupCatId:int64}", "DeleteByID")
+    b.Handle("GET",     "/",                        "GetList"   )
+    b.Handle("GET",     "/page",                    "GetPage"   )
+    b.Handle("GET",     "/{groupCatId:int64}",      "GetById"   )
+    b.Handle("POST",    "/add",                     "Create"    )
+    b.Handle("PUT",     "/update",                  "Update"    )
+    b.Handle("DELETE",  "/{groupCatId:int64}",      "DeleteByID")
 }
 
 func (c *GroupCatController) GetList() *JsonResult {

+ 6 - 6
pkg/system/controller/group_controller.go

@@ -12,12 +12,12 @@ type GroupController struct {
 }
 
 func (c *GroupController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/{groupId:int64}", "GetById")
-    b.Handle("GET", "/view", "GetTreeView")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{groupId:int64}", "DeleteById")
+    b.Handle("GET",     "/",                                "GetList"       )
+    b.Handle("GET",     "/{groupId:int64}",                 "GetById"       )
+    b.Handle("GET",     "/view",                            "GetTreeView"   )
+    b.Handle("POST",    "/add",                             "Create"        )
+    b.Handle("PUT",     "/update",                          "Update"        )
+    b.Handle("DELETE",  "/{groupId:int64}",                 "DeleteById"    )
 }
 
 func (c *GroupController) GetList() *JsonResult {

+ 4 - 4
pkg/system/controller/login_controller.go

@@ -11,10 +11,10 @@ type LoginController struct {
 }
 
 func (c *LoginController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("POST", "/login", "Login")
-    b.Handle("GET", "/logout", "Logout")
-    b.Handle("GET", "/test", "GetTest")
-    b.Handle("GET", "/hello", "GetHello")
+    b.Handle("POST",    "/login",                       "Login"     )
+    b.Handle("GET",     "/logout",                      "Logout"    )
+    b.Handle("GET",     "/test",                        "GetTest"   )
+    b.Handle("GET",     "/hello",                       "GetHello"  )
 }
 
 func (c *LoginController) Login() *JsonResult {

+ 6 - 6
pkg/system/controller/msg_cat_controller.go

@@ -12,12 +12,12 @@ type MsgCatController struct {
 }
 
 func (c *MsgCatController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{msgCatId:int64}", "GetById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{msgCatId:int64}", "DeleteByID")
+    b.Handle("GET",     "/",                            "GetList"   )
+    b.Handle("GET",     "/page",                        "GetPage"   )
+    b.Handle("GET",     "/{msgCatId:int64}",            "GetById"   )
+    b.Handle("POST",    "/add",                         "Create"    )
+    b.Handle("PUT",     "/update",                      "Update"    )
+    b.Handle("DELETE",  "/{msgCatId:int64}",            "DeleteByID")
 }
 
 func (c *MsgCatController) GetList() *JsonResult {

+ 6 - 6
pkg/system/controller/msg_controller.go

@@ -12,12 +12,12 @@ type MsgController struct {
 }
 
 func (c *MsgController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{msgId:int64}", "GetById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{msgId:int64}", "DeleteByID")
+    b.Handle("GET",     "/",                            "GetList"   )
+    b.Handle("GET",     "/page",                        "GetPage"   )
+    b.Handle("GET",     "/{msgId:int64}",               "GetById"   )
+    b.Handle("POST",    "/add",                         "Create"    )
+    b.Handle("PUT",     "/update",                      "Update"    )
+    b.Handle("DELETE",  "/{msgId:int64}",               "DeleteByID")
 }
 
 func (c *MsgController) GetList() *JsonResult {

+ 7 - 7
pkg/system/controller/oc_cat_controller.go

@@ -12,13 +12,13 @@ type OcCatController struct {
 }
 
 func (c *OcCatController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{ocTypeId:int64}/{ocCatId:int64}", "GetById")
-    b.Handle("GET", "/{ocTypeId:int64}", "GetListById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{ocTypeId:int64}/{ocCatId:int64}", "DeleteByID")
+    b.Handle("GET",     "/",                                    "GetList")
+    b.Handle("GET",     "/page",                                "GetPage")
+    b.Handle("GET",     "/{ocTypeId:int64}/{ocCatId:int64}",    "GetById")
+    b.Handle("GET",     "/{ocTypeId:int64}",                    "GetListById")
+    b.Handle("POST",    "/add",                                 "Create")
+    b.Handle("PUT",     "/update",                              "Update")
+    b.Handle("DELETE",  "/{ocTypeId:int64}/{ocCatId:int64}",    "DeleteByID")
 }
 
 func (c *OcCatController) GetList() *JsonResult {

+ 12 - 12
pkg/system/controller/oc_controller.go

@@ -13,18 +13,18 @@ type OcController struct {
 }
 
 func (c *OcController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{ocId:int64}", "GetById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{ocId:int64}", "DeleteByID")
-    b.Handle("GET", "/getAdmin/{ocId:int64}", "GetAdmin")
-    b.Handle("POST", "/addAdmin", "CreateAdmin")
-    b.Handle("PUT", "/updateAdmin", "UpdateAdmin")
-    b.Handle("PUT", "/resetAdminPwd/{ocId:int64}/{adminId:int64}", "ResetAdminPwd")
-    b.Handle("PUT", "/updateStatus/{ocId:int64}/{status:int64}", "UpdateStatus")
-    b.Handle("PUT", "/updateLicStatus/{ocId:int64}/{status:int64}", "UpdateLicStatus")
+    b.Handle("GET",     "/",                                            "GetList")
+    b.Handle("GET",     "/page",                                        "GetPage")
+    b.Handle("GET",     "/{ocId:int64}",                                "GetById")
+    b.Handle("POST",    "/add",                                         "Create")
+    b.Handle("PUT",     "/update",                                      "Update")
+    b.Handle("DELETE",  "/{ocId:int64}",                                "DeleteByID")
+    b.Handle("GET",     "/getAdmin/{ocId:int64}",                       "GetAdmin")
+    b.Handle("POST",    "/addAdmin",                                    "CreateAdmin")
+    b.Handle("PUT",     "/updateAdmin",                                 "UpdateAdmin")
+    b.Handle("PUT",     "/resetAdminPwd/{ocId:int64}/{adminId:int64}",  "ResetAdminPwd")
+    b.Handle("PUT",     "/updateStatus/{ocId:int64}/{status:int64}",    "UpdateStatus")
+    b.Handle("PUT",     "/updateLicStatus/{ocId:int64}/{status:int64}", "UpdateLicStatus")
 }
 
 func (c *OcController) GetList() *JsonResult {

+ 6 - 6
pkg/system/controller/oc_type_controller.go

@@ -12,12 +12,12 @@ type OcTypeController struct {
 }
 
 func (c *OcTypeController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{ocTypeId:int64}", "GetById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{ocTypeId:int64}", "DeleteByID")
+    b.Handle("GET",     "/",                            "GetList"   )
+    b.Handle("GET",     "/page",                        "GetPage"   )
+    b.Handle("GET",     "/{ocTypeId:int64}",            "GetById"   )
+    b.Handle("POST",    "/add",                         "Create"    )
+    b.Handle("PUT",     "/update",                      "Update"    )
+    b.Handle("DELETE",  "/{ocTypeId:int64}",            "DeleteByID")
 }
 
 func (c *OcTypeController) GetList() *JsonResult {

+ 9 - 9
pkg/system/controller/position_controller.go

@@ -12,12 +12,12 @@ type PositionController struct {
 }
 
 func (c *PositionController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{positionId:int64}", "GetById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{positionId:int64}", "DeleteByID")
+    b.Handle("GET",         "/",                        "GetList"   )
+    b.Handle("GET",         "/page",                    "GetPage"   )
+    b.Handle("GET",         "/{positionId:int64}",      "GetById"   )
+    b.Handle("POST",        "/add",                     "Create"    )
+    b.Handle("PUT",         "/update",                  "Update"    )
+    b.Handle("DELETE",      "/{positionId:int64}",      "DeleteByID")
 }
 
 func (c *PositionController) GetList() *JsonResult {
@@ -50,7 +50,7 @@ func (c *PositionController) GetById(positionId int64) *JsonResult {
 }
 
 func (c *PositionController) Create() *JsonResult {
-    ocId := c.GetCurOcId()
+    ocId   := c.GetCurOcId()
     userId := c.GetCurUserId()
 
     position := datamodel.Position{}
@@ -69,7 +69,7 @@ func (c *PositionController) Create() *JsonResult {
 }
 
 func (c *PositionController) Update() *JsonResult {
-    ocId := c.GetCurOcId()
+    ocId   := c.GetCurOcId()
     userId := c.GetCurUserId()
 
     position := datamodel.Position{}
@@ -87,7 +87,7 @@ func (c *PositionController) Update() *JsonResult {
 }
 
 func (c *PositionController) DeleteByID(positionId int64) *JsonResult {
-    ocId := c.GetCurOcId()
+    ocId   := c.GetCurOcId()
     userId := c.GetCurUserId()
 
     m := make(map[string]interface{})

+ 8 - 11
pkg/system/controller/role_controller.go

@@ -12,12 +12,12 @@ type RoleController struct {
 }
 
 func (c *RoleController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{roleId:int64}", "GetById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{roleId:int64}", "DeleteById")
+    b.Handle("GET",     "/",                            "GetList"   )
+    b.Handle("GET",     "/page",                        "GetPage"   )
+    b.Handle("GET",     "/{roleId:int64}",              "GetById"   )
+    b.Handle("POST",    "/add",                         "Create"    )
+    b.Handle("PUT",     "/update",                      "Update"    )
+    b.Handle("DELETE",  "/{roleId:int64}",              "DeleteById")
 }
 
 func (c *RoleController) GetList() *JsonResult {
@@ -51,8 +51,7 @@ func (c *RoleController) GetById(roleId int64) *JsonResult {
 
 func (c *RoleController) Create() *JsonResult {
     userId := c.GetCurUserId()
-
-    role := &datamodel.Role{}
+    role   := &datamodel.Role{}
     if err := c.Ctx.ReadJSON(role); err != nil {
         return ResultErr("读取数据失败", nil)
     }
@@ -67,8 +66,7 @@ func (c *RoleController) Create() *JsonResult {
 
 func (c *RoleController) Update() *JsonResult {
     userId := c.GetCurUserId()
-
-    role := &datamodel.Role{}
+    role   := &datamodel.Role{}
     if err := c.Ctx.ReadJSON(role); err != nil {
         return ResultErr("读取数据失败", nil)
     }
@@ -83,7 +81,6 @@ func (c *RoleController) Update() *JsonResult {
 
 func (c *RoleController) DeleteById(roleId int64) *JsonResult {
     userId := c.GetCurUserId()
-
     m := make(map[string]interface{})
     m["roleId"] = roleId
     m["deletedBy"] = userId

+ 8 - 8
pkg/system/controller/task_cat_controller.go

@@ -12,12 +12,12 @@ type TaskCatController struct {
 }
 
 func (c *TaskCatController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{taskCatId:int64}", "GetById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{taskCatId:int64}", "DeleteByID")
+    b.Handle("GET",     "",                             "GetList"   )
+    b.Handle("GET",     "/page",                        "GetPage"   )
+    b.Handle("GET",     "/{taskCatId:int64}",           "GetById"   )
+    b.Handle("POST",    "/add",                         "Create"    )
+    b.Handle("PUT",     "/update",                      "Update"    )
+    b.Handle("DELETE",  "/{taskCatId:int64}",           "DeleteByID")
 }
 
 func (c *TaskCatController) GetList() *JsonResult {
@@ -51,7 +51,7 @@ func (c *TaskCatController) GetById(taskCatId int64) *JsonResult {
 }
 
 func (c *TaskCatController) Create() *JsonResult {
-    ocId := c.GetCurOcId()
+    ocId   := c.GetCurOcId()
     userId := c.GetCurUserId()
 
     taskCat := datamodel.TaskCat{}
@@ -69,7 +69,7 @@ func (c *TaskCatController) Create() *JsonResult {
 }
 
 func (c *TaskCatController) Update() *JsonResult {
-    ocId := c.GetCurOcId()
+    ocId   := c.GetCurOcId()
     userId := c.GetCurUserId()
 
     taskCat := datamodel.TaskCat{}

+ 6 - 6
pkg/system/controller/task_controller.go

@@ -12,12 +12,12 @@ type TaskController struct {
 }
 
 func (c *TaskController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET", "/", "GetList")
-    b.Handle("GET", "/page", "GetPage")
-    b.Handle("GET", "/{taskId:int64}", "GetById")
-    b.Handle("POST", "/add", "Create")
-    b.Handle("PUT", "/update", "Update")
-    b.Handle("DELETE", "/{taskId:int64}", "DeleteByID")
+    b.Handle("GET",     "/",                            "GetList"   )
+    b.Handle("GET",     "/page",                        "GetPage"   )
+    b.Handle("GET",     "/{taskId:int64}",              "GetById"   )
+    b.Handle("POST",    "/add",                         "Create"    )
+    b.Handle("PUT",     "/update",                      "Update"    )
+    b.Handle("DELETE",  "/{taskId:int64}",              "DeleteByID")
 }
 
 func (c *TaskController) GetList() *JsonResult {

+ 18 - 21
pkg/system/controller/user_controller.go

@@ -12,21 +12,21 @@ type UserController struct {
 }
 
 func (c *UserController) BeforeActivation(b mvc.BeforeActivation) {
-    b.Handle("GET",     "/page",                                         "GetPage"            )
-    b.Handle("GET",     "/",                                             "GetList"            )
-    b.Handle("GET",     "/{groupId:int64}/{accountId:int64}",             "GetById"            )
-    b.Handle("POST",     "/add",                                         "Create"            )
-    b.Handle("PUT",     "/update",                                         "Update"            )
-    b.Handle("PUT",     "/updatePassword/{pwd: string}",                 "UpdatePassword"    )
-    b.Handle("PUT",     "/resetPassword/{userId:int64}",                 "ResetPassword"        )
-    b.Handle("PUT",     "/updateStatus/{userId:int64}/{status:int64}",     "UpdateStatus"        )
-    b.Handle("DELETE",     "/{accountId:int64}",                             "DeleteById"        )
-    b.Handle("GET",     "/IsUserNameExist/{userName: string}",             "IsUserNameExist"    )
-    b.Handle("GET",     "/IsUserPhoneExist/{userPhone: string}",         "IsUserPhoneExist"    )
-    b.Handle("GET",     "/IsStaffNoExist/{staffNo: string}",             "IsStaffNoExist"    )
-    b.Handle("GET",     "/IsEmailExist/{email: string}",                 "IsEmailExist"        )
-    b.Handle("GET",     "/select",                                         "SelectUser"        )
-    b.Handle("GET",     "/permit",                                         "GetPermit"            )
+    b.Handle("GET",     "/page",                                            "GetPage"           )
+    b.Handle("GET",     "/",                                                "GetList"           )
+    b.Handle("GET",     "/{groupId:int64}/{accountId:int64}",               "GetById"           )
+    b.Handle("POST",    "/add",                                             "Create"            )
+    b.Handle("PUT",     "/update",                                          "Update"            )
+    b.Handle("PUT",     "/updatePassword/{pwd: string}",                    "UpdatePassword"    )
+    b.Handle("PUT",     "/resetPassword/{userId:int64}",                    "ResetPassword"     )
+    b.Handle("PUT",     "/updateStatus/{userId:int64}/{status:int64}",      "UpdateStatus"      )
+    b.Handle("DELETE",  "/{accountId:int64}",                               "DeleteById"        )
+    b.Handle("GET",     "/IsUserNameExist/{userName: string}",              "IsUserNameExist"   )
+    b.Handle("GET",     "/IsUserPhoneExist/{userPhone: string}",            "IsUserPhoneExist"  )
+    b.Handle("GET",     "/IsStaffNoExist/{staffNo: string}",                "IsStaffNoExist"    )
+    b.Handle("GET",     "/IsEmailExist/{email: string}",                    "IsEmailExist"      )
+    b.Handle("GET",     "/select",                                          "SelectUser"        )
+    b.Handle("GET",     "/permit",                                          "GetPermit"         )
 }
 
 func (c *UserController) GetPage() *JsonResult {
@@ -60,7 +60,7 @@ func (c *UserController) GetById(groupId, accountId int64) *JsonResult {
 }
 
 func (c *UserController) Create() *JsonResult {
-    ocId := c.GetCurOcId()
+    ocId     := c.GetCurOcId()
     ocTypeId := c.GetOcTypeId()
 
     user := &viewmodel.UserInfo{}
@@ -69,7 +69,6 @@ func (c *UserController) Create() *JsonResult {
     }
 
     user.OcId = ocId
-
     if err := c.Service.Create(ocTypeId, user); err != nil {
         return ResultErr(err.Error(), nil)
     } else {
@@ -91,7 +90,7 @@ func (c *UserController) Update() *JsonResult {
 }
 
 func (c *UserController) UpdatePassword(psw string) *JsonResult {
-    ocId := c.GetCurOcId()
+    ocId   := c.GetCurOcId()
     userId := c.GetCurUserId()
 
     if err := c.Service.UpdatePassword(ocId, userId, psw); err != nil {
@@ -103,7 +102,6 @@ func (c *UserController) UpdatePassword(psw string) *JsonResult {
 
 func (c *UserController) ResetPassword(userId int64) *JsonResult {
     ocId := c.GetCurOcId()
-
     if err := c.Service.ResetPassword(ocId, userId); err != nil {
         return ResultErr(err.Error(), nil)
     } else {
@@ -113,7 +111,6 @@ func (c *UserController) ResetPassword(userId int64) *JsonResult {
 
 func (c *UserController) UpdateStatus(userId, status int64) *JsonResult {
     ocId := c.GetCurOcId()
-
     if err := c.Service.ChangeStatus(ocId, userId, status); err != nil {
         return ResultErr(err.Error(), nil)
     } else {
@@ -122,7 +119,7 @@ func (c *UserController) UpdateStatus(userId, status int64) *JsonResult {
 }
 
 func (c *UserController) DeleteById(accountId int64) *JsonResult {
-    ocId := c.GetCurOcId()
+    ocId   := c.GetCurOcId()
     userId := c.GetCurUserId()
 
     m := make(map[string]interface{})