123456789101112131415161718192021222324252627282930 |
- package http
- import (
- "go-common/app/admin/main/apm/model/ut"
- bm "go-common/library/net/http/blademaster"
- )
- // utApps
- func utApps(c *bm.Context) {
- var (
- err error
- count int
- res = []*ut.App{}
- )
- v := new(ut.AppReq)
- if err = c.Bind(v); err != nil {
- return
- }
- if res, count, err = apmSvc.UTApps(c, v); err != nil {
- c.JSON(nil, err)
- return
- }
- data := &Paper{
- Pn: v.Pn,
- Ps: v.Ps,
- Items: res,
- Total: count,
- }
- c.JSON(data, nil)
- }
|