SystemController.go_new 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. package controllers
  2. import (
  3. "git.qianqiusoft.com/qianqiusoft/light-apiengine/models"
  4. )
  5. // _Login
  6. // @Title _Login
  7. // @Description 用户登录
  8. // @Param logininfo false "登录信息"
  9. // @Success 200 {object} models.Account
  10. // @Failure 403 :id is empty
  11. func System_Login(c *SystemController) {
  12. var logininfo models.LoginInfo
  13. c.Ctx.BindJSON(&logininfo)
  14. __none_func__(logininfo)
  15. c.Ctx.JSON(200, models.SysReturn{200, "", nil})
  16. }
  17. // _Logout
  18. // @Title _Logout
  19. // @Description 用户退出
  20. // @Success 200 {object} models.Account
  21. // @Failure 403 :id is empty
  22. func System_Logout(c *SystemController) {
  23. __none_func__()
  24. c.Ctx.JSON(200, models.SysReturn{200, "", nil})
  25. }
  26. // _GetMenuTree
  27. // @Title _GetMenuTree
  28. // @Description 获取系统菜单
  29. // @Param user string false "用户id"
  30. // @Success 200 {object} models.Account
  31. // @Failure 403 :id is empty
  32. func System_GetMenuTree(c *SystemController) {
  33. user := c.Ctx.Param(":user")
  34. __none_func__(user)
  35. c.Ctx.JSON(200, models.SysReturn{200, "", nil})
  36. }
  37. // _FindPermissions
  38. // @Title _FindPermissions
  39. // @Description 查找用户的菜单权限标识集合
  40. // @Param user string false "用户id"
  41. // @Success 200 {object} models.Account
  42. // @Failure 403 :id is empty
  43. func System_FindPermissions(c *SystemController) {
  44. user := c.Ctx.Param(":user")
  45. __none_func__(user)
  46. c.Ctx.JSON(200, models.SysReturn{200, "", nil})
  47. }
  48. // _AddPermission
  49. // @Title _AddPermission
  50. // @Description 查找用户的菜单权限标识集合
  51. // @Param user string false "用户id"
  52. // @Success 200 {object} models.Account
  53. // @Failure 403 :id is empty
  54. func System_AddPermission(c *SystemController) {
  55. user := c.Ctx.Param(":user")
  56. __none_func__(user)
  57. c.Ctx.JSON(200, models.SysReturn{200, "", nil})
  58. }
  59. func __none_func__(params ... interface{}){
  60. }