http.go 231 B

123456789101112
  1. package http
  2. type Response struct {
  3. Success bool `json:"success"`
  4. Code int `json:"code"`
  5. Message string `json:"message"`
  6. Data interface{} `json:"data"`
  7. }
  8. type Request interface {
  9. Validate() error
  10. }