proto.go 639 B

12345678910111213141516171819202122232425262728293031
  1. package rest
  2. type (
  3. ListResponse struct {
  4. Page int `json:"page"`
  5. PageSize int `json:"pagesize"`
  6. TotalCount int64 `json:"totalCount"`
  7. Data interface{} `json:"data"`
  8. }
  9. ValidateResponse struct {
  10. }
  11. CreateResponse struct {
  12. ID interface{} `json:"id"`
  13. Topic string `json:"topic"`
  14. State string `json:"state"`
  15. }
  16. UpdateResponse struct {
  17. ID interface{} `json:"id"`
  18. Topic string `json:"topic"`
  19. State string `json:"state"`
  20. }
  21. DeleteResponse struct {
  22. ID interface{} `json:"id"`
  23. Topic string `json:"topic"`
  24. State string `json:"state"`
  25. }
  26. )