go-common/app/interface/main/space/http/album.go
2019-04-22 18:49:16 +08:00

17 lines
314 B
Go

package http
import (
bm "go-common/library/net/http/blademaster"
)
func albumIndex(c *bm.Context) {
v := new(struct {
Mid int64 `form:"mid" validate:"min=1"`
Ps int `form:"ps" default:"8" validate:"min=1"`
})
if err := c.Bind(v); err != nil {
return
}
c.JSON(spcSvc.AlbumIndex(c, v.Mid, v.Ps))
}