| | |
| | | package router |
| | | |
| | | import ( |
| | | "aps_crm/api/v1" |
| | | "github.com/gin-gonic/gin" |
| | | ) |
| | | |
| | | type ImageRouter struct{} |
| | | |
| | | func (s *BaseRouter) InitImageRouter(Router *gin.RouterGroup) (R gin.IRoutes) { |
| | | imageRouter := Router.Group("image") |
| | | imageApi := v1.ApiGroup.ImageApi |
| | | { |
| | | imageRouter.POST("upload", imageApi.Upload) // 上传图像 |
| | | } |
| | | return imageRouter |
| | | } |
| | | // |
| | | //import ( |
| | | // "aps_crm/api/v1" |
| | | // "github.com/gin-gonic/gin" |
| | | //) |
| | | // |
| | | //type ImageRouter struct{} |
| | | // |
| | | //func (s *BaseRouter) InitImageRouter(Router *gin.RouterGroup) (R gin.IRoutes) { |
| | | // imageRouter := Router.Group("image") |
| | | // imageApi := v1.ApiGroup.ImageApi |
| | | // { |
| | | // imageRouter.POST("upload", imageApi.Upload) // 上传图像 |
| | | // } |
| | | // return imageRouter |
| | | //} |