eta_trial.go 935 B

1234567891011121314151617181920212223242526
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/hz_crm_eta/controller/eta_trial"
  5. )
  6. // InitEtaTrial ETA试用
  7. func InitEtaTrial(r *gin.RouterGroup) {
  8. control := new(eta_trial.EtaTrialController)
  9. group := r.Group("eta_trial/")
  10. group.POST("user/mobile_fetch", control.GetUserByMobile)
  11. group.POST("user/disable", control.Disable)
  12. group.POST("user/edit", control.Edit)
  13. group.POST("user/remove", control.Remove)
  14. group.POST("user/update_login", control.UpdateLogin)
  15. group.POST("user/update_index_num", control.UpdateIndexNum)
  16. group.POST("user/update_chart_num", control.UpdateChartNum)
  17. group.POST("user/update_active_time", control.UpdateActiveTime)
  18. group.POST("user/update_login_duration", control.UpdateLoginDuration)
  19. group.POST("questionnaire/list", control.GetQuestionnaireList)
  20. group.POST("questionnaire/commit", control.QuestionnaireCommit)
  21. group.POST("manual_user/add_auth", control.CreateManualAuth)
  22. }