goweb/controllers/shop/index.go

20 lines
296 B
Go

package shop
import (
"web/common/response"
"github.com/gin-gonic/gin"
)
type ShopController struct{}
func (c *ShopController) Index() gin.HandlerFunc {
return func(ctx *gin.Context) {
response.Ok(ctx, response.Struct{
Code: 1,
Message: "shop/index",
Data: nil,
})
}
}