refactor: move

This commit is contained in:
xiaojunnuo
2021-02-08 00:21:36 +08:00
parent cfb1034450
commit 82f86d9556
150 changed files with 14691 additions and 2059 deletions
+15
View File
@@ -0,0 +1,15 @@
export class Ret {
constructor (code = 0, msg, data) {
this.code = code
this.msg = msg
this.data = data
}
static success (data) {
return new Ret(0, '', data)
}
static error (msg) {
return new Ret(1, msg)
}
}