response.go 336 B

123456789101112131415
  1. package controller
  2. type Response struct {
  3. Code int `json:"code"`
  4. Msg string `json:"msg"`
  5. result interface{} `json:"result"`
  6. }
  7. type ChatMessage struct {
  8. Time string `json:"time"`
  9. Content string `json:"content"`
  10. MesType string `json:"mes_type"`
  11. Name string `json:"name"`
  12. Avator string `json:"avator"`
  13. }