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

Method fail

app/lib/helper.js:2–8  ·  view source on GitHub ↗
(err = {}, msg = '操作失败', errorCode = 10001)

Source from the content-addressed store, hash-verified

1class Resolve {
2 fail(err = {}, msg = '操作失败', errorCode = 10001) {
3 return {
4 msg,
5 err,
6 errorCode
7 }
8 }
9
10 success(msg = 'success', errorCode = 0, code = 200) {
11 return {

Callers 6

admin.jsFile · 0.80
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