瀏覽代碼

媒体消息推送

kobe6258 7 月之前
父節點
當前提交
dbb740f03b
共有 2 個文件被更改,包括 0 次插入5 次删除
  1. 0 1
      models/meta_info.go
  2. 0 4
      services/meta.go

+ 0 - 1
models/meta_info.go

@@ -24,7 +24,6 @@ const (
 // MetaInfo 表示 meta_infos 表的模型
 type MetaInfo struct {
 	Id          int        `description:"id"`
-	Uid         string     `description:"uid"`
 	Meta        string     `description:"meta"`
 	From        string     `description:"from"`
 	To          string     `description:"column:to"`

+ 0 - 4
services/meta.go

@@ -3,7 +3,6 @@ package services
 import (
 	"encoding/json"
 	"eta/eta_mini_crm_ht/models"
-	"github.com/google/uuid"
 	"strconv"
 	"strings"
 )
@@ -25,11 +24,8 @@ func CreateMeta(authorName string, authorId int, mediaId int, publishTime string
 	}
 	metaStr, _ := json.Marshal(Meta)
 	toStr := strings.Join(idStrList, ",")
-	UUID := uuid.New()
-	uuidStr := UUID.String()
 	metaContent := models.MetaInfo{
 		From:       "ADMIN",
-		Uid:        "media:" + uuidStr,
 		Meta:       string(metaStr),
 		MetaType:   "USER_NOTICE",
 		SourceType: sourceType,