common.go 307 B

12345678910111213141516171819
  1. package task
  2. import "log-server/utils"
  3. type Common struct {
  4. }
  5. type SendMsg struct {
  6. MsgType string `json:"msgtype"`
  7. Markdown struct {
  8. Content string `json:"content"`
  9. } `json:"markdown"`
  10. }
  11. func (s *Common) SendMsgData(url string, params interface{}) {
  12. _, _ = utils.HttpPost(url, params)
  13. return
  14. }