mirror of
https://github.com/iLoveElysia/openbilibili.git
synced 2026-09-02 07:38:04 -05:00
18 lines
356 B
Go
18 lines
356 B
Go
|
|
package http
|
||
|
|
|
||
|
|
import (
|
||
|
|
bm "go-common/library/net/http/blademaster"
|
||
|
|
)
|
||
|
|
|
||
|
|
func listChallActivity(ctx *bm.Context) {
|
||
|
|
v := &struct {
|
||
|
|
Business int8 `form:"business" validate:"required,gt=0"`
|
||
|
|
Cid int64 `form:"cid" validate:"required,gt=0"`
|
||
|
|
}{}
|
||
|
|
if err := ctx.Bind(v); err != nil {
|
||
|
|
return
|
||
|
|
}
|
||
|
|
|
||
|
|
ctx.JSON(wkfSvc.ActivityList(ctx, v.Business, v.Cid))
|
||
|
|
}
|