crm.go 667 B

123456789101112131415161718192021222324
  1. package routers
  2. import (
  3. "github.com/gin-gonic/gin"
  4. "hongze/fms_api/controller/crm"
  5. "hongze/fms_api/middleware"
  6. )
  7. func InitCrm(rg *gin.RouterGroup) {
  8. // 合同
  9. ct := new(crm.ContractController)
  10. crGroup := rg.Group("contract/").Use(middleware.Token())
  11. crGroup.GET("search_list", ct.SearchList)
  12. crGroup.GET("permission_list", ct.PermissionList)
  13. crGroup.GET("service_detail", ct.ServiceDetail)
  14. // 销售
  15. sl := new(crm.CompanySellerController)
  16. slGroup := rg.Group("company_seller/").Use(middleware.Token())
  17. slGroup.GET("list", sl.List)
  18. slGroup.GET("group_list", sl.GroupList)
  19. slGroup.GET("all_list", sl.AllList)
  20. slGroup.GET("team_list", sl.TeamList)
  21. }