You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
314 B
16 lines
314 B
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)) |
|
}
|
|
|