17 lines
314 B
Go
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))
|
||
|
}
|