contact.go 1005 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package v1
  2. import (
  3. "xingjia-management-gateway/apis"
  4. "xingjia-management-gateway/param/base"
  5. )
  6. type ContactAddBody struct {
  7. Addr string `form:"addr" json:"addr"`
  8. Phone string `form:"phone" json:"phone"`
  9. Email string `form:"email" json:"email"`
  10. }
  11. type ContactAddRequest struct {
  12. base.Header
  13. ContactAddBody
  14. }
  15. type ContactAddResponse struct {
  16. base.Result
  17. }
  18. type ContactInfoRequest struct {
  19. base.Header
  20. }
  21. type ContactInfoResponse struct {
  22. base.Result
  23. Data apis.ContactInfoReply `json:"data"`
  24. }
  25. type ContactDelQuery struct {
  26. Id int64 `form:"id" json:"id"`
  27. }
  28. type ContactDelRequest struct {
  29. base.Header
  30. ContactDelQuery
  31. }
  32. type ContactDelResponse struct {
  33. base.Result
  34. }
  35. type ContactUpdateBody struct {
  36. Addr string `form:"addr" json:"addr"`
  37. Phone string `form:"phone" json:"phone"`
  38. Email string `form:"email" json:"email"`
  39. Id int64 `form:"id" json:"id"`
  40. }
  41. type ContactUpdateRequest struct {
  42. base.Header
  43. ContactUpdateBody
  44. }
  45. type ContactUpdateResponse struct {
  46. base.Result
  47. }