backend/pkg/net/api_response.go
liuhaotian 80bd452cca
All checks were successful
continuous-integration/drone/push Build is passing
feat: move JsonApi handler、ErrorHandler、validator for param 2 pkg
2022-01-13 13:40:03 +08:00

12 lines
266 B
Go

// 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"`
}