sktech_info.go 911 B

12345678910111213141516171819202122232425262728293031
  1. package http_model
  2. import "time"
  3. type GetSketchInfoRequest struct {
  4. TaskID string `json:"task_id"`
  5. }
  6. type SketchPhotoInfo struct {
  7. PhotoUrl string `json:"photo_url"` // 图片或视频url
  8. PhotoUid string `json:"photo_uid"`
  9. Symbol int64 `json:"symbol"` // 标志位,1为详情图,2为视频
  10. }
  11. type GetSketchInfoData struct {
  12. SketchPhotos []SketchPhotoInfo `json:"sketch_photos"` //初稿图片以及视频
  13. Title string `json:"title"`
  14. Content string `json:"content"`
  15. Agreeat time.Time `json:"agree_at"`
  16. Submitat time.Time `json:"submit_at"`
  17. ReverseOpinion string `json:"reverse_opinion"`
  18. }
  19. func NewGetSketchInfoRequest() *GetSketchInfoRequest {
  20. return new(GetSketchInfoRequest)
  21. }
  22. func NewGetSketchInfoResponse() *CommonResponse {
  23. resp := new(CommonResponse)
  24. resp.Data = new(GetSketchInfoData)
  25. return resp
  26. }