common.go 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // Copyright 2019 github.com. All rights reserved.
  2. // Use of this source code is governed by github.com.
  3. package consts
  4. const CRYPTO_KEY = "3D28BP43U3Y1B4N6REQW3F319DD23465"
  5. const (
  6. UserTypeSuper = 1
  7. UserTypeNormal = 2
  8. UserTypeTemp = 3
  9. )
  10. const (
  11. UserStatusEffective = 1
  12. UserStatusWait = 2
  13. UserStatusExpired = 3
  14. )
  15. const (
  16. OperationModuleAccount = 1
  17. OperationModuleDesc = 2
  18. OperationModuleVision = 3
  19. OperationModuleNews = 4
  20. OperationModuleAnnouncement = 5
  21. OperationModuleProgram = 6
  22. OperationModuleHuiwu = 7
  23. OperationModuleLiangxue = 8
  24. OperationModuleDangfeng = 9
  25. OperationModuleContact = 10
  26. OperationModulePagePic = 11
  27. )
  28. var JtContentTable = map[int]string{
  29. OperationModuleDesc: "t_jt_desc",
  30. OperationModuleVision: "t_jt_vision",
  31. OperationModuleNews: "t_jt_news",
  32. OperationModuleAnnouncement: "t_jt_announcement",
  33. OperationModuleProgram: "t_jt_program",
  34. OperationModuleHuiwu: "t_jt_hw",
  35. OperationModuleLiangxue: "t_jt_lx",
  36. OperationModuleDangfeng: "t_jt_df",
  37. }
  38. var OperationModuleName = map[int]string{
  39. OperationModuleAccount: "账号模块",
  40. OperationModuleDesc: "集团简介",
  41. OperationModuleVision: "发展愿景",
  42. OperationModuleNews: "兴嘉要闻",
  43. OperationModuleAnnouncement: "公示公告",
  44. OperationModuleProgram: "项目展示",
  45. OperationModuleHuiwu: "会务动态",
  46. OperationModuleLiangxue: "两学一做",
  47. OperationModuleDangfeng: "党风廉洁",
  48. OperationModuleContact: "联系我们",
  49. }
  50. const (
  51. _ = iota
  52. OperationActionUserAdd
  53. OperationActionUserDel
  54. OperationActionUserUpdate
  55. OperationActionUserResetPassword
  56. OperationActionDel
  57. OperationActionUpdate
  58. OperationActionAdd
  59. )
  60. var OperationActionName = map[int]string{
  61. OperationActionUserAdd: "添加帐号",
  62. OperationActionUserDel: "删除账号",
  63. OperationActionUserUpdate: "修改账号",
  64. OperationActionUserResetPassword: "重置密码",
  65. OperationActionDel: "删除",
  66. OperationActionUpdate: "修改",
  67. OperationActionAdd: "添加",
  68. }