signup.go 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136
  1. package http
  2. import (
  3. "context"
  4. "go-common/app/admin/main/up/model/signmodel"
  5. "go-common/library/net/http/blademaster"
  6. )
  7. func signUpAuditLogs(c *blademaster.Context) {
  8. httpQueryFunc(new(signmodel.SignOpSearchArg),
  9. func(context context.Context, arg interface{}) (res interface{}, err error) {
  10. return Svc.Crmservice.SignUpAuditLogs(context, arg.(*signmodel.SignOpSearchArg))
  11. },
  12. "SignUpAuditLogs")(c)
  13. }
  14. func signAdd(c *blademaster.Context) {
  15. httpPostFunc(new(signmodel.SignUpArg),
  16. func(context context.Context, arg interface{}) (res interface{}, err error) {
  17. return Svc.Crmservice.SignAdd(context, arg.(*signmodel.SignUpArg))
  18. },
  19. "SignAdd")(c)
  20. }
  21. func signUpdate(c *blademaster.Context) {
  22. httpPostFunc(new(signmodel.SignUpArg),
  23. func(context context.Context, arg interface{}) (res interface{}, err error) {
  24. return Svc.Crmservice.SignUpdate(context, arg.(*signmodel.SignUpArg))
  25. },
  26. "SignUp")(c)
  27. }
  28. func violationAdd(c *blademaster.Context) {
  29. httpPostFunc(new(signmodel.ViolationArg),
  30. func(context context.Context, arg interface{}) (res interface{}, err error) {
  31. return Svc.Crmservice.ViolationAdd(context, arg.(*signmodel.ViolationArg))
  32. },
  33. "ViolationAdd")(c)
  34. }
  35. func violationRetract(c *blademaster.Context) {
  36. httpPostFunc(new(signmodel.IDArg),
  37. func(context context.Context, arg interface{}) (res interface{}, err error) {
  38. return Svc.Crmservice.ViolationRetract(context, arg.(*signmodel.IDArg))
  39. },
  40. "ViolationRetract")(c)
  41. }
  42. func violationList(c *blademaster.Context) {
  43. httpQueryFunc(new(signmodel.PageArg),
  44. func(context context.Context, arg interface{}) (res interface{}, err error) {
  45. return Svc.Crmservice.ViolationList(context, arg.(*signmodel.PageArg))
  46. },
  47. "ViolationList")(c)
  48. }
  49. func absenceAdd(c *blademaster.Context) {
  50. httpPostFunc(new(signmodel.AbsenceArg),
  51. func(context context.Context, arg interface{}) (res interface{}, err error) {
  52. return Svc.Crmservice.AbsenceAdd(context, arg.(*signmodel.AbsenceArg))
  53. },
  54. "AbsenceAdd")(c)
  55. }
  56. func absenceRetract(c *blademaster.Context) {
  57. httpPostFunc(new(signmodel.IDArg),
  58. func(context context.Context, arg interface{}) (res interface{}, err error) {
  59. return Svc.Crmservice.AbsenceRetract(context, arg.(*signmodel.IDArg))
  60. },
  61. "AbsenceRetract")(c)
  62. }
  63. func absenceList(c *blademaster.Context) {
  64. httpQueryFunc(new(signmodel.PageArg),
  65. func(context context.Context, arg interface{}) (res interface{}, err error) {
  66. return Svc.Crmservice.AbsenceList(context, arg.(*signmodel.PageArg))
  67. },
  68. "AbsenceList")(c)
  69. }
  70. func viewCheck(c *blademaster.Context) {
  71. httpQueryFunc(new(signmodel.PowerCheckArg),
  72. func(context context.Context, arg interface{}) (res interface{}, err error) {
  73. return Svc.Crmservice.ViewCheck(context, arg.(*signmodel.PowerCheckArg))
  74. },
  75. "ViewCheck")(c)
  76. }
  77. func signQuery(c *blademaster.Context) {
  78. httpQueryFunc(new(signmodel.SignQueryArg),
  79. func(context context.Context, arg interface{}) (res interface{}, err error) {
  80. return Svc.Crmservice.SignQuery(context, arg.(*signmodel.SignQueryArg))
  81. },
  82. "SignQuery")(c)
  83. }
  84. func signQueryID(c *blademaster.Context) {
  85. httpQueryFunc(new(signmodel.SignIDArg),
  86. func(context context.Context, arg interface{}) (res interface{}, err error) {
  87. return Svc.Crmservice.SignQueryID(context, arg.(*signmodel.SignIDArg))
  88. },
  89. "SignQueryID")(c)
  90. }
  91. func signPayComplete(c *blademaster.Context) {
  92. httpPostFunc(new(signmodel.SignPayCompleteArg),
  93. func(context context.Context, arg interface{}) (res interface{}, err error) {
  94. return Svc.Crmservice.SignPayComplete(context, arg.(*signmodel.SignPayCompleteArg))
  95. },
  96. "SignPayComplete")(c)
  97. }
  98. func signCheckExist(c *blademaster.Context) {
  99. httpQueryFunc(new(signmodel.SignCheckExsitArg),
  100. func(context context.Context, arg interface{}) (res interface{}, err error) {
  101. return Svc.Crmservice.SignCheckExist(context, arg.(*signmodel.SignCheckExsitArg))
  102. },
  103. "SignCheckExist")(c)
  104. }
  105. func countrys(c *blademaster.Context) {
  106. httpQueryFunc(new(signmodel.CommonArg),
  107. func(context context.Context, arg interface{}) (res interface{}, err error) {
  108. return Svc.Crmservice.Countrys(context, arg.(*signmodel.CommonArg))
  109. },
  110. "SignCheckExist")(c)
  111. }
  112. func tids(c *blademaster.Context) {
  113. httpQueryFunc(new(signmodel.CommonArg),
  114. func(context context.Context, arg interface{}) (res interface{}, err error) {
  115. return Svc.Crmservice.Tids(context, arg.(*signmodel.CommonArg))
  116. },
  117. "SignCheckExist")(c)
  118. }