正在显示
10 个修改的文件
包含
8 行增加
和
54 行删除
@@ -293,34 +293,6 @@ | @@ -293,34 +293,6 @@ | ||
293 | ] | 293 | ] |
294 | } | 294 | } |
295 | }, | 295 | }, |
296 | - "v1/mini/article_comment/at_user/select": { | ||
297 | - "post": { | ||
298 | - "summary": "小程序获取回复@人可选列表", | ||
299 | - "operationId": "MiniArticleCommentAtUser", | ||
300 | - "responses": { | ||
301 | - "200": { | ||
302 | - "description": "A successful response.", | ||
303 | - "schema": { | ||
304 | - "$ref": "#/definitions/MiniArticleCommentAtUserResponse" | ||
305 | - } | ||
306 | - } | ||
307 | - }, | ||
308 | - "parameters": [ | ||
309 | - { | ||
310 | - "name": "body", | ||
311 | - "in": "body", | ||
312 | - "required": true, | ||
313 | - "schema": { | ||
314 | - "$ref": "#/definitions/MiniArticleCommentAtUserRequest" | ||
315 | - } | ||
316 | - } | ||
317 | - ], | ||
318 | - "requestBody": {}, | ||
319 | - "tags": [ | ||
320 | - "comment" | ||
321 | - ] | ||
322 | - } | ||
323 | - }, | ||
324 | "v1/mini/article_comment/at_who/list": { | 296 | "v1/mini/article_comment/at_who/list": { |
325 | "post": { | 297 | "post": { |
326 | "summary": "小程序展示评论时@人可选列表", | 298 | "summary": "小程序展示评论时@人可选列表", |
@@ -2978,23 +2950,6 @@ | @@ -2978,23 +2950,6 @@ | ||
2978 | "list" | 2950 | "list" |
2979 | ] | 2951 | ] |
2980 | }, | 2952 | }, |
2981 | - "MiniArticleCommentAtUserRequest": { | ||
2982 | - "type": "object", | ||
2983 | - "properties": { | ||
2984 | - "articleId": { | ||
2985 | - "type": "integer", | ||
2986 | - "format": "int64" | ||
2987 | - } | ||
2988 | - }, | ||
2989 | - "title": "MiniArticleCommentAtUserRequest", | ||
2990 | - "required": [ | ||
2991 | - "articleId" | ||
2992 | - ] | ||
2993 | - }, | ||
2994 | - "MiniArticleCommentAtUserResponse": { | ||
2995 | - "type": "object", | ||
2996 | - "title": "MiniArticleCommentAtUserResponse" | ||
2997 | - }, | ||
2998 | "MiniArticleCommentAtWhoRequest": { | 2953 | "MiniArticleCommentAtWhoRequest": { |
2999 | "type": "object", | 2954 | "type": "object", |
3000 | "properties": { | 2955 | "properties": { |
@@ -14,7 +14,7 @@ func SystemAddHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | @@ -14,7 +14,7 @@ func SystemAddHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | ||
14 | return func(w http.ResponseWriter, r *http.Request) { | 14 | return func(w http.ResponseWriter, r *http.Request) { |
15 | var req types.DepartmentAddRequest | 15 | var req types.DepartmentAddRequest |
16 | if err := httpx.Parse(r, &req); err != nil { | 16 | if err := httpx.Parse(r, &req); err != nil { |
17 | - httpx.ErrorCtx(r.Context(), w, err) | 17 | + result.ParamErrorResult(r, w, err) |
18 | return | 18 | return |
19 | } | 19 | } |
20 | 20 |
@@ -14,7 +14,7 @@ func SystemDeleteHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | @@ -14,7 +14,7 @@ func SystemDeleteHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | ||
14 | return func(w http.ResponseWriter, r *http.Request) { | 14 | return func(w http.ResponseWriter, r *http.Request) { |
15 | var req types.DepartmentGetRequest | 15 | var req types.DepartmentGetRequest |
16 | if err := httpx.Parse(r, &req); err != nil { | 16 | if err := httpx.Parse(r, &req); err != nil { |
17 | - httpx.ErrorCtx(r.Context(), w, err) | 17 | + result.ParamErrorResult(r, w, err) |
18 | return | 18 | return |
19 | } | 19 | } |
20 | 20 |
@@ -14,7 +14,7 @@ func SystemGetHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | @@ -14,7 +14,7 @@ func SystemGetHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | ||
14 | return func(w http.ResponseWriter, r *http.Request) { | 14 | return func(w http.ResponseWriter, r *http.Request) { |
15 | var req types.DepartmentGetRequest | 15 | var req types.DepartmentGetRequest |
16 | if err := httpx.Parse(r, &req); err != nil { | 16 | if err := httpx.Parse(r, &req); err != nil { |
17 | - httpx.ErrorCtx(r.Context(), w, err) | 17 | + result.ParamErrorResult(r, w, err) |
18 | return | 18 | return |
19 | } | 19 | } |
20 | 20 |
@@ -14,7 +14,7 @@ func SystemListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | @@ -14,7 +14,7 @@ func SystemListHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | ||
14 | return func(w http.ResponseWriter, r *http.Request) { | 14 | return func(w http.ResponseWriter, r *http.Request) { |
15 | var req types.DepartmentListRequest | 15 | var req types.DepartmentListRequest |
16 | if err := httpx.Parse(r, &req); err != nil { | 16 | if err := httpx.Parse(r, &req); err != nil { |
17 | - httpx.ErrorCtx(r.Context(), w, err) | 17 | + result.ParamErrorResult(r, w, err) |
18 | return | 18 | return |
19 | } | 19 | } |
20 | 20 |
@@ -14,7 +14,7 @@ func SystemUpdateHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | @@ -14,7 +14,7 @@ func SystemUpdateHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | ||
14 | return func(w http.ResponseWriter, r *http.Request) { | 14 | return func(w http.ResponseWriter, r *http.Request) { |
15 | var req types.DepartmentUpdateRequest | 15 | var req types.DepartmentUpdateRequest |
16 | if err := httpx.Parse(r, &req); err != nil { | 16 | if err := httpx.Parse(r, &req); err != nil { |
17 | - httpx.ErrorCtx(r.Context(), w, err) | 17 | + result.ParamErrorResult(r, w, err) |
18 | return | 18 | return |
19 | } | 19 | } |
20 | 20 |
@@ -14,7 +14,7 @@ func MiniBusinessHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | @@ -14,7 +14,7 @@ func MiniBusinessHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | ||
14 | return func(w http.ResponseWriter, r *http.Request) { | 14 | return func(w http.ResponseWriter, r *http.Request) { |
15 | var req types.MessageBusinessRequest | 15 | var req types.MessageBusinessRequest |
16 | if err := httpx.Parse(r, &req); err != nil { | 16 | if err := httpx.Parse(r, &req); err != nil { |
17 | - httpx.ErrorCtx(r.Context(), w, err) | 17 | + result.ParamErrorResult(r, w, err) |
18 | return | 18 | return |
19 | } | 19 | } |
20 | 20 |
@@ -14,7 +14,7 @@ func MiniSystemHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | @@ -14,7 +14,7 @@ func MiniSystemHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | ||
14 | return func(w http.ResponseWriter, r *http.Request) { | 14 | return func(w http.ResponseWriter, r *http.Request) { |
15 | var req types.MessageSystemRequest | 15 | var req types.MessageSystemRequest |
16 | if err := httpx.Parse(r, &req); err != nil { | 16 | if err := httpx.Parse(r, &req); err != nil { |
17 | - httpx.ErrorCtx(r.Context(), w, err) | 17 | + result.ParamErrorResult(r, w, err) |
18 | return | 18 | return |
19 | } | 19 | } |
20 | 20 |
@@ -14,7 +14,7 @@ func MiniMyLikeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | @@ -14,7 +14,7 @@ func MiniMyLikeHandler(svcCtx *svc.ServiceContext) http.HandlerFunc { | ||
14 | return func(w http.ResponseWriter, r *http.Request) { | 14 | return func(w http.ResponseWriter, r *http.Request) { |
15 | var req types.MiniMyLikeRequest | 15 | var req types.MiniMyLikeRequest |
16 | if err := httpx.Parse(r, &req); err != nil { | 16 | if err := httpx.Parse(r, &req); err != nil { |
17 | - httpx.ErrorCtx(r.Context(), w, err) | 17 | + result.ParamErrorResult(r, w, err) |
18 | return | 18 | return |
19 | } | 19 | } |
20 | 20 |
@@ -43,7 +43,6 @@ func (l *SystemAddLogic) SystemAdd(req *types.DepartmentAddRequest) (resp *types | @@ -43,7 +43,6 @@ func (l *SystemAddLogic) SystemAdd(req *types.DepartmentAddRequest) (resp *types | ||
43 | } | 43 | } |
44 | 44 | ||
45 | insert := &domain.Department{ | 45 | insert := &domain.Department{ |
46 | - Id: 0, | ||
47 | ParentId: 0, | 46 | ParentId: 0, |
48 | CompanyId: userToken.CompanyId, | 47 | CompanyId: userToken.CompanyId, |
49 | Name: req.Name, | 48 | Name: req.Name, |
-
请 注册 或 登录 后发表评论