MCPcopy
hub / github.com/lfb/nodejs-koa-blog / success

Method success

app/lib/helper.js:10–16  ·  view source on GitHub ↗
(msg = 'success', errorCode = 0, code = 200)

Source from the content-addressed store, hash-verified

8 }
9
10 success(msg = 'success', errorCode = 0, code = 200) {
11 return {
12 msg,
13 code,
14 errorCode
15 }
16 }
17
18 json(data, msg = 'success', errorCode = 0, code = 200) {
19 return {

Callers 5

reply.jsFile · 0.80
category.jsFile · 0.80
user.jsFile · 0.80
comment.jsFile · 0.80
article.jsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected