wangkaiyue 1 жил өмнө
parent
commit
bb9ae90641

+ 1 - 1
api/internal/logic/sendwxtmplmsglogic.go

@@ -28,7 +28,7 @@ func (l *SendWxTmplMsgLogic) SendWxTmplMsg(req *types.WxTmplMessageReq) (resp *t
 	res, err := l.svcCtx.MessageCenter.SendWxTmplMsg(l.ctx, &messageclient.WxTmplMsgRequest{
 		UserIds:     req.UserIds,
 		PositionIds: req.PositionIds,
-		MsgType:     req.MsgType,
+		MsgType:     req.Class,
 		Title:       req.Title,
 		Detail:      req.Detail,
 		Date:        req.Date,

+ 1 - 1
api/internal/types/types.go

@@ -135,7 +135,7 @@ type WxTmplMessageReq struct {
 	Date        string `json:"date"`
 	Detail      string `json:"detail"`
 	Row4        string `json:"row4"`
-	MsgType     int64  `json:"class"` //msg_type
+	Class       int64  `json:"class"` //msg_type
 	Url         string `json:"url"`
 }
 

+ 1 - 1
api/message.api

@@ -137,7 +137,7 @@ type WxTmplMessageReq {
 	Date        string `json:"date"`
 	Detail      string `json:"detail"`
 	Row4        string `json:"row4"`
-	MsgType     int64  `json:"class"` //msg_type
+	Class       int64  `json:"class"` //msg_type
 	Url         string `json:"url"`
 }