123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150 |
- package http
- import (
- "context"
- "go-common/app/interface/main/mcn/model/mcnmodel"
- "go-common/library/net/http/blademaster"
- )
- func mcnGetMcnGetIndexInc(c *blademaster.Context) {
- oarg := new(mcnmodel.McnGetIndexIncReq)
- httpGetFunc(
- oarg,
- func(context context.Context, arg interface{}) (res interface{}, err error) {
- return srv.GetMcnGetIndexInc(context, arg.(*mcnmodel.McnGetIndexIncReq))
- },
- "GetMcnGetIndexInc",
- []preBindFuncType{getCookieMid(c, oarg)},
- []preHandleFuncType{cheatReq},
- )(c)
- }
- func mcnGetMcnGetIndexSource(c *blademaster.Context) {
- oarg := new(mcnmodel.McnGetIndexSourceReq)
- httpGetFunc(
- oarg,
- func(context context.Context, arg interface{}) (res interface{}, err error) {
- return srv.GetMcnGetIndexSource(context, arg.(*mcnmodel.McnGetIndexSourceReq))
- },
- "GetMcnGetIndexSource",
- []preBindFuncType{getCookieMid(c, oarg)},
- []preHandleFuncType{cheatReq},
- )(c)
- }
- func mcnGetPlaySource(c *blademaster.Context) {
- oarg := new(mcnmodel.McnGetPlaySourceReq)
- httpGetFunc(
- oarg,
- func(context context.Context, arg interface{}) (res interface{}, err error) {
- return srv.GetPlaySource(context, arg.(*mcnmodel.McnGetPlaySourceReq))
- },
- "GetPlaySource",
- []preBindFuncType{getCookieMid(c, oarg)},
- []preHandleFuncType{cheatReq},
- )(c)
- }
- func mcnGetMcnFans(c *blademaster.Context) {
- oarg := new(mcnmodel.McnGetMcnFansReq)
- httpGetFunc(
- oarg,
- func(context context.Context, arg interface{}) (res interface{}, err error) {
- return srv.GetMcnFans(context, arg.(*mcnmodel.McnGetMcnFansReq))
- },
- "GetMcnFans",
- []preBindFuncType{getCookieMid(c, oarg)},
- []preHandleFuncType{cheatReq},
- )(c)
- }
- func mcnGetMcnFansInc(c *blademaster.Context) {
- oarg := new(mcnmodel.McnGetMcnFansIncReq)
- httpGetFunc(
- oarg,
- func(context context.Context, arg interface{}) (res interface{}, err error) {
- return srv.GetMcnFansInc(context, arg.(*mcnmodel.McnGetMcnFansIncReq))
- },
- "GetMcnFansInc",
- []preBindFuncType{getCookieMid(c, oarg)},
- []preHandleFuncType{cheatReq},
- )(c)
- }
- func mcnGetMcnFansDec(c *blademaster.Context) {
- oarg := new(mcnmodel.McnGetMcnFansDecReq)
- httpGetFunc(
- oarg,
- func(context context.Context, arg interface{}) (res interface{}, err error) {
- return srv.GetMcnFansDec(context, arg.(*mcnmodel.McnGetMcnFansDecReq))
- },
- "GetMcnFansDec",
- []preBindFuncType{getCookieMid(c, oarg)},
- []preHandleFuncType{cheatReq},
- )(c)
- }
- func mcnGetMcnFansAttentionWay(c *blademaster.Context) {
- oarg := new(mcnmodel.McnGetMcnFansAttentionWayReq)
- httpGetFunc(
- oarg,
- func(context context.Context, arg interface{}) (res interface{}, err error) {
- return srv.GetMcnFansAttentionWay(context, arg.(*mcnmodel.McnGetMcnFansAttentionWayReq))
- },
- "GetMcnFansAttentionWay",
- []preBindFuncType{getCookieMid(c, oarg)},
- []preHandleFuncType{cheatReq},
- )(c)
- }
- func mcnGetBaseFansAttrReq(c *blademaster.Context) {
- oarg := new(mcnmodel.McnGetBaseFansAttrReq)
- httpGetFunc(
- oarg,
- func(context context.Context, arg interface{}) (res interface{}, err error) {
- return srv.GetBaseFansAttrReq(context, arg.(*mcnmodel.McnGetBaseFansAttrReq))
- },
- "GetBaseFansAttrReq",
- []preBindFuncType{getCookieMid(c, oarg)},
- []preHandleFuncType{cheatReq},
- )(c)
- }
- func mcnGetFansArea(c *blademaster.Context) {
- oarg := new(mcnmodel.McnGetFansAreaReq)
- httpGetFunc(
- oarg,
- func(context context.Context, arg interface{}) (res interface{}, err error) {
- return srv.GetFansArea(context, arg.(*mcnmodel.McnGetFansAreaReq))
- },
- "GetFansArea",
- []preBindFuncType{getCookieMid(c, oarg)},
- []preHandleFuncType{cheatReq},
- )(c)
- }
- func mcnGetFansType(c *blademaster.Context) {
- oarg := new(mcnmodel.McnGetFansTypeReq)
- httpGetFunc(
- oarg,
- func(context context.Context, arg interface{}) (res interface{}, err error) {
- return srv.GetFansType(context, arg.(*mcnmodel.McnGetFansTypeReq))
- },
- "GetFansType",
- []preBindFuncType{getCookieMid(c, oarg)},
- []preHandleFuncType{cheatReq},
- )(c)
- }
- func mcnGetFansTag(c *blademaster.Context) {
- oarg := new(mcnmodel.McnGetFansTagReq)
- httpGetFunc(
- oarg,
- func(context context.Context, arg interface{}) (res interface{}, err error) {
- return srv.GetFansTag(context, arg.(*mcnmodel.McnGetFansTagReq))
- },
- "GetFansTag",
- []preBindFuncType{getCookieMid(c, oarg)},
- []preHandleFuncType{cheatReq},
- )(c)
- }
|