eta_trial.go 869 B

123456789101112131415161718192021222324
  1. package routers
  2. import (
  3. "eta/eta_bridge/controller/eta_trial"
  4. "github.com/gin-gonic/gin"
  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. }