This commit is contained in:
richboo111
2024-01-24 17:37:27 +08:00
parent 67abc7aa00
commit cda0c6e9f3
3 changed files with 34 additions and 3 deletions

View File

@@ -31,7 +31,7 @@ type BusinessSendMsgReq struct {
PlatformShopId string `json:"platformShopId"` // 平台门店id
BizType string `json:"bizType"` // 业务类型IM消息。默认值IM
SubBizType string `json:"subBizType"` // 子业务类型发送消息。默认值SEND_MESSAGE
Payload BusinessMsgPayload `json:"payload"`
PayLoad BusinessMsgPayload `json:"payLoad"`
}
type BusinessMsgPayload struct {

View File

@@ -29,7 +29,7 @@ func TestSendMsg(t *testing.T) {
PlatformShopId: "1157916361",
BizType: IMType,
SubBizType: IMTypeSendMsg,
Payload: BusinessMsgPayload{
PayLoad: BusinessMsgPayload{
GroupId: "$2$13205337818$PNM",
ReceiverIds: []string{"301157916361", "10154538612", "321921188187760"},
Content: "{\"text\": \"现在是20231027 10:04:44\"}",