重构Gaea服务, 升级版本

This commit is contained in:
2020-07-07 15:06:58 +08:00
parent a086ba5dd8
commit 0d747f92b2
11 changed files with 50 additions and 50 deletions

View File

@@ -3,7 +3,21 @@ package com.synebula.gaea.app.component
import com.synebula.gaea.data.message.Status
import com.synebula.gaea.data.message.Message
class HttpMessage(status: Int = Status.Success) : Message<Any>(status) {
class HttpMessage() : Message<Any>() {
constructor(data: Any) : this() {
this.data = data
}
constructor(status: Int, message: String) : this() {
this.status = status
this.message = message
}
constructor(status: Int, data: Any, message: String) : this(status, message) {
this.data = data
}
fun load(msg: Message<*>) {
this.status = msg.status
this.message = msg.message