refactor: rename ui

This commit is contained in:
xiaojunnuo
2021-02-04 11:17:54 +08:00
parent eab0c3be60
commit a39dac4dbd
55 changed files with 162 additions and 2111 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)
}
}