Add: Ping router

This commit is contained in:
HFO4
2019-11-05 12:31:22 +08:00
parent 86896aedd0
commit 74b5bf24a8
5 changed files with 52 additions and 3 deletions

9
serializer/common.go Normal file
View File

@@ -0,0 +1,9 @@
package serializer
// Response 基础序列化器
type Response struct {
Code int `json:"code"`
Data interface{} `json:"data,omitempty"`
Msg string `json:"msg"`
Error string `json:"error,omitempty"`
}