GetProjectRecordsRequest.go 885 B

12345678910111213141516171819202122232425262728293031
  1. package http_model
  2. type GetProjectRecordsRequest struct {
  3. PageSize int32 `json:"page_size"`
  4. PageNum int32 `json:"page_num"`
  5. UserID int64 `json:"user_id"`
  6. }
  7. type ProjectRecordsPreview struct {
  8. ProjectID int64 `json:"project_id"`
  9. EnterpriseID int64 `json:"enterprise_id"`
  10. ProjectName string `json:"project_name"`
  11. ProjectType string `json:"project_type"`
  12. ProjectStatus string `json:"project_status"`
  13. UpdatedAt string `json:"updated_at"`
  14. }
  15. type ProjectRecordsData struct {
  16. ProjectRecordsPreview []*ProjectRecordsPreview `json:"project_records_preview"`
  17. Total string `json:"total"`
  18. }
  19. func NewGetProjectRecordsRequest() *GetProjectRecordsRequest {
  20. return new(GetProjectRecordsRequest)
  21. }
  22. func NewGetProjectRecordsResponse() *CommonResponse {
  23. resp := new(CommonResponse)
  24. resp.Data = new(ProjectRecordsData)
  25. return resp
  26. }