package selection import ( "github.com/gogf/gf/net/ghttp" "youngmini_server/library/response" ) var Selection = selectionApi{} type selectionApi struct{} func (*selectionApi) List(r *ghttp.Request) { var req ListSelectionReq req.PageIndex = r.GetInt("idx") req.CntPerPage = r.GetInt("cnt") req.Platform = r.GetString("platform") req.SearchValue = r.GetString("searchvalue") req.SecForm = r.GetString("secform") req.TaskForm = r.GetString("taskform") if res, err := service.List(r); err != nil { response.Code(r, err) } else { response.SuccessWithData(r, res) } }