mirror of
https://github.com/certd/certd.git
synced 2026-04-24 04:17:25 +08:00
refactor: rename ui
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user