feat: move JsonApi handler、ErrorHandler、validator for param 2 pkg
continuous-integration/drone/push Build is passing

This commit is contained in:
2022-01-13 13:40:03 +08:00
parent d3b4e8f5e5
commit 80bd452cca
5 changed files with 149 additions and 43 deletions
+11
View File
@@ -0,0 +1,11 @@
// Package net 网络有关的库
package net
import "encoding/json"
// Response 所有api统一返回格式
type Response struct {
Code int `json:"code"`
Message string `json:"message"`
Data json.RawMessage `json:"data,omitempty"`
}