From 07de4f26512d56c7dd0e1f191891375c276a6d2b Mon Sep 17 00:00:00 2001 From: Syd Xu Date: Thu, 18 Apr 2024 15:02:44 +0800 Subject: [PATCH] fix: json.Number to model.Uint64 --- marketing-api/model/tools/comment/reply.go | 5 ++--- marketing-api/model/tools/interestaction/object.go | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/marketing-api/model/tools/comment/reply.go b/marketing-api/model/tools/comment/reply.go index e6f96ff4..c2894431 100644 --- a/marketing-api/model/tools/comment/reply.go +++ b/marketing-api/model/tools/comment/reply.go @@ -1,15 +1,14 @@ package comment import ( - "encoding/json" - "github.com/bububa/oceanengine/marketing-api/enum" + "github.com/bububa/oceanengine/marketing-api/model" ) // Reply 评论回复 type Reply struct { // ReplyToCommentID 回复的一级评论ID - ReplyToCommentID json.Number `json:"reply_to_comment_id,omitempty"` + ReplyToCommentID model.Uint64 `json:"reply_to_comment_id,omitempty"` // CommentID 评论id CommentID uint64 `json:"comment_id,omitempty"` // Text 评论内容 diff --git a/marketing-api/model/tools/interestaction/object.go b/marketing-api/model/tools/interestaction/object.go index 1a2231e0..80b492d4 100644 --- a/marketing-api/model/tools/interestaction/object.go +++ b/marketing-api/model/tools/interestaction/object.go @@ -1,11 +1,11 @@ package interestaction -import "encoding/json" +import "github.com/bububa/oceanengine/marketing-api/model" // Object 类目/关键词对象 type Object struct { // ID 类目/关键词IID - ID json.Number `json:"id,omitempty"` + ID model.Uint64 `json:"id,omitempty"` // Name 名称 Name string `json:"name,omitempty"` // Num 覆盖人数