KPI绩效考核系统
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.

35 lines
933 B

package workwechat
import (
"encoding/json"
"fmt"
"key_performance_indicators/middleware/wechatapp/wechatstatice"
"key_performance_indicators/overall/publicmethod"
)
// 发送文本通知消息
func (s *SentMessage) SendMessage() (callBackByte []byte, err error) {
sendUrl, token, err := wechatstatice.GetSendMsgTokenUrl("kpi", "send")
if err != nil {
return
}
fmt.Printf("%v---------sendUrl, token----------->%v\n", sendUrl, token)
sendDate, _ := json.Marshal(s)
callBackByte = publicmethod.CurlPostJosn(sendUrl, sendDate)
return
}
// 更新文本通知消息
func (s *UpdateMessage) UpdateMessage() (callBackByte []byte, err error) {
sendUrl, token, err := wechatstatice.GetSendMsgTokenUrl("kpi", "update")
if err != nil {
return
}
fmt.Printf("%v---------sendUrl, token----------->%v\n", sendUrl, token)
sendDate, _ := json.Marshal(s)
callBackByte = publicmethod.CurlPostJosn(sendUrl, sendDate)
return
}