作者 tangxvhui

暂存

@@ -42,7 +42,7 @@ type ( @@ -42,7 +42,7 @@ type (
42 // 获取标签详情 42 // 获取标签详情
43 type ( 43 type (
44 TagGetRequest { 44 TagGetRequest {
45 - Id int64 `json:"id"` 45 + Id int64 `path:"id"`
46 } 46 }
47 TagGetResponse { 47 TagGetResponse {
48 Id int64 `json:"id"` 48 Id int64 `json:"id"`
@@ -76,7 +76,7 @@ type ( @@ -76,7 +76,7 @@ type (
76 //删除标签 76 //删除标签
77 type ( 77 type (
78 TagDeleteRequest { 78 TagDeleteRequest {
79 - Id int64 `json:"id"` 79 + Id int64 `path:"id"`
80 } 80 }
81 TagDeleteResponse { 81 TagDeleteResponse {
82 Id int64 `json:"id"` 82 Id int64 `json:"id"`
@@ -26,7 +26,6 @@ func NewCreateTagLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateT @@ -26,7 +26,6 @@ func NewCreateTagLogic(ctx context.Context, svcCtx *svc.ServiceContext) *CreateT
26 } 26 }
27 27
28 func (l *CreateTagLogic) CreateTag(req *types.TagCreateRequest) (resp *types.TagCreateResponse, err error) { 28 func (l *CreateTagLogic) CreateTag(req *types.TagCreateRequest) (resp *types.TagCreateResponse, err error) {
29 - // todo: add your logic here and delete this line  
30 var conn = l.svcCtx.DefaultDBConn() 29 var conn = l.svcCtx.DefaultDBConn()
31 //检查重复 30 //检查重复
32 cnt, _, err := l.svcCtx.ArticleTagRepository.Find(l.ctx, conn, req.CompanyId, map[string]interface{}{ 31 cnt, _, err := l.svcCtx.ArticleTagRepository.Find(l.ctx, conn, req.CompanyId, map[string]interface{}{
@@ -90,7 +90,7 @@ type TagEditResponse struct { @@ -90,7 +90,7 @@ type TagEditResponse struct {
90 } 90 }
91 91
92 type TagGetRequest struct { 92 type TagGetRequest struct {
93 - Id int64 `json:"id"` 93 + Id int64 `path:"id"`
94 } 94 }
95 95
96 type TagGetResponse struct { 96 type TagGetResponse struct {
@@ -121,7 +121,7 @@ type TagItem struct { @@ -121,7 +121,7 @@ type TagItem struct {
121 } 121 }
122 122
123 type TagDeleteRequest struct { 123 type TagDeleteRequest struct {
124 - Id int64 `json:"id"` 124 + Id int64 `path:"id"`
125 } 125 }
126 126
127 type TagDeleteResponse struct { 127 type TagDeleteResponse struct {