picture.go 372 B

123456789101112131415161718
  1. package app
  2. import (
  3. "github.com/gin-gonic/gin"
  4. v1 "lc-fangdaosha/api/v1"
  5. )
  6. type PictureRouter struct {
  7. }
  8. // InitInfoRouter 初始化图片路由
  9. func (p *PictureRouter) InitInfoRouter(Router *gin.RouterGroup) {
  10. var pApi = v1.ApiGroupApp.AppApiGroup.PictureApi
  11. picGroup := Router.Group("picture")
  12. {
  13. picGroup.GET("get", pApi.GetPicture) //获取图片信息
  14. }
  15. }