func (s *NotifyService) Notify(ctx *gin.Context, req *pb.NotifyRequest) (*pb.NotifyReply, error) {
var notify2 params.Notify
ctx.ShouldBind(¬ify2)
fmt.Println(notify2)
fmt.Println("请求方式", notify2.Method)
参数Notify
package params
type Notify struct {
Version string `form:"version"`
RequestId string `form:"requestId"`
Timestamp string `form:"timestamp"`
Charset string `form:"charset"`
Method string `form:"method"`
Sign string `form:"sign"`
IsPerfReq string `form:"isPerfReq"`
OuterId string `form:"outerId"`
BizType string `form:"bizType"`
Token string `form:"token"`
OrganizerId string `form:"organizerId"`
OrganizerNick string `form:"organizerNick"`
Mobile string `form:"mobile"`
MobileType string `form:"mobileType"`
IdCard string `form:"idCard"`
IdCardType string `form:"idCardType"`
SendStyle string `form:"sendStyle"`
SmsTemplate string `form:"smsTemplate"`
ValidStart string `form:"validStart"`
ValidEnd string `form:"validEnd"`
Amount string `form:"amount"`
Frequency string `form:"frequency"`
ItemId string `form:"itemId"`
ItemTitle string `form:"itemTitle"`
OuterIdP string `form:"outerIdP"`
OuterIdSKU string `form:"outerIdSKU"`
SkuProperties string `form:"skuProperties"`
TotalFee string `form:"totalFee"`
Weeks string `form:"weeks"`
DeadlineOpen string `form:"deadlineOpen"`
DeadlineUse string `form:"deadlineUse"`
TimeLimit string `form:"timeLimit"`
BlessWords string `form:"blessWords"`
MainOrderId string `form:"mainOrderId"`
BizExtend string `form:"bizExtend"`
MsyNewChannel string `form:"msyNewChannel"`
SubItemID string `form:"subItemID"`
}
type NotifyBind struct {
Method string `form:"method"`
}