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.

37 lines
714 B

package jyy
import (
"recook/internal/back"
"recook/internal/libs/bean"
"recook/internal/v2/logic/manage/jyy"
"recook/tools"
"github.com/gin-gonic/gin"
)
func (o Proxy) VipList(c *gin.Context) {
var args jyy.ArgsVipList
if err := tools.Params(&args, c); err != nil {
back.Fail(c, err.Error())
return
}
data, total := jyy.Logic.VipList(args)
back.Suc(c, "ok", bean.ResultLists{
Total: int(total),
List: data,
})
}
func (o Proxy) VipSummay(c *gin.Context) {
var args jyy.VipSummary
if err := tools.Params(&args, c); err != nil {
back.Fail(c, err.Error())
return
}
data, total := jyy.Logic.VipSummay(args)
back.Suc(c, "ok", bean.ResultLists{
Total: int(total),
List: data,
})
}