refactor: ui

This commit is contained in:
xiaojunnuo
2021-01-28 01:09:17 +08:00
parent 232cd7215e
commit 2f03e18c59
14 changed files with 6149 additions and 23 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)
}
}