Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.
 
 
 

116 Zeilen
2.6 KiB

  1. // @Title Golang SDK Client
  2. // @Description This code is auto generated
  3. // @Author Ecloud SDK
  4. package model
  5. import (
  6. "gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
  7. "gitlab.ecloud.com/ecloud/ecloudsdkcore/utils"
  8. )
  9. type ListAssetsBody struct {
  10. position.Body
  11. // 素材组类型,可选值:AIGC(虚拟人像素材库)、LivenessFace(真人素材库)
  12. GroupType *string `json:"groupType,omitempty"`
  13. // 页码(从 1 开始)
  14. PageNo *int32 `json:"pageNo,omitempty"`
  15. // 素材组ID列表,按ID精确查询,不传则不过滤
  16. GroupIds []string `json:"groupIds,omitempty"`
  17. // 每页行数
  18. PageSize *int32 `json:"pageSize,omitempty"`
  19. // 素材名称模糊搜索关键字,最长64个字符,不传则不过滤
  20. AssetName *string `json:"assetName,omitempty"`
  21. // 素材状态列表,可选值:PROCESSING(处理中)、ACTIVE(可用)、FAILED(失败),不传则不过滤
  22. Statuses []string `json:"statuses,omitempty"`
  23. }
  24. func (s ListAssetsBody) String() string {
  25. return utils.Beautify(s)
  26. }
  27. func (s ListAssetsBody) GoString() string {
  28. return s.String()
  29. }
  30. func (s ListAssetsBody) ToJsonString() string {
  31. return utils.ToJsonString(s)
  32. }
  33. func (s *ListAssetsBody) SetGroupType(v string) *ListAssetsBody {
  34. s.GroupType = &v
  35. return s
  36. }
  37. func (s *ListAssetsBody) SetPageNo(v int32) *ListAssetsBody {
  38. s.PageNo = &v
  39. return s
  40. }
  41. func (s *ListAssetsBody) SetGroupIds(v []string) *ListAssetsBody {
  42. s.GroupIds = v
  43. return s
  44. }
  45. func (s *ListAssetsBody) SetPageSize(v int32) *ListAssetsBody {
  46. s.PageSize = &v
  47. return s
  48. }
  49. func (s *ListAssetsBody) SetAssetName(v string) *ListAssetsBody {
  50. s.AssetName = &v
  51. return s
  52. }
  53. func (s *ListAssetsBody) SetStatuses(v []string) *ListAssetsBody {
  54. s.Statuses = v
  55. return s
  56. }
  57. type ListAssetsBodyBuilder struct {
  58. s *ListAssetsBody
  59. }
  60. func NewListAssetsBodyBuilder() *ListAssetsBodyBuilder {
  61. s := &ListAssetsBody{}
  62. b := &ListAssetsBodyBuilder{s: s}
  63. return b
  64. }
  65. func (b *ListAssetsBodyBuilder) GroupType(v string) *ListAssetsBodyBuilder {
  66. b.s.GroupType = &v
  67. return b
  68. }
  69. func (b *ListAssetsBodyBuilder) PageNo(v int32) *ListAssetsBodyBuilder {
  70. b.s.PageNo = &v
  71. return b
  72. }
  73. func (b *ListAssetsBodyBuilder) GroupIds(v []string) *ListAssetsBodyBuilder {
  74. b.s.GroupIds = v
  75. return b
  76. }
  77. func (b *ListAssetsBodyBuilder) PageSize(v int32) *ListAssetsBodyBuilder {
  78. b.s.PageSize = &v
  79. return b
  80. }
  81. func (b *ListAssetsBodyBuilder) AssetName(v string) *ListAssetsBodyBuilder {
  82. b.s.AssetName = &v
  83. return b
  84. }
  85. func (b *ListAssetsBodyBuilder) Statuses(v []string) *ListAssetsBodyBuilder {
  86. b.s.Statuses = v
  87. return b
  88. }
  89. func (b *ListAssetsBodyBuilder) Build() *ListAssetsBody {
  90. return b.s
  91. }