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.

42 lines
875 B

package user
type Gain struct {
}
type argsIntroId struct {
IntroId uint `json:"introId" form:"introId"`
}
//
//// @Style 赠送卡详情
//func (g *Gain) GiveIntroInfo(c *gin.Context) {
// args := argsIntroId{}
// if err := tools.ParseParams(&args, c); err != nil {
// back.Fail(c, err.Error())
// return
// }
// if args.IntroId == 0 {
// back.Fail(c, "参数错误")
// return
// }
//
// result := user.GainLogic.GiveIntroInfo(args.IntroId)
// back.Suc(c, "获取成功", result)
//}
//
//// @Style 使用卡详情
//func (g *Gain) UseIntroInfo(c *gin.Context) {
// args := argsIntroId{}
// if err := tools.ParseParams(&args, c); err != nil {
// back.Fail(c, err.Error())
// return
// }
// if args.IntroId == 0 {
// back.Fail(c, "参数错误")
// return
// }
//
// result := user.GainLogic.UseIntroInfo(args.IntroId)
// back.Suc(c, "获取成功", result)
//}