You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

68 lines
1.3 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 ListDocsQuery struct {
  10. position.Query
  11. // 关键词(模糊查询),查询参数二选一即可
  12. DocName *string `json:"docName,omitempty"`
  13. // 文档 Id(精确匹配),查询参数二选一即可
  14. DocId *string `json:"docId,omitempty"`
  15. }
  16. func (s ListDocsQuery) String() string {
  17. return utils.Beautify(s)
  18. }
  19. func (s ListDocsQuery) GoString() string {
  20. return s.String()
  21. }
  22. func (s ListDocsQuery) ToJsonString() string {
  23. return utils.ToJsonString(s)
  24. }
  25. func (s *ListDocsQuery) SetDocName(v string) *ListDocsQuery {
  26. s.DocName = &v
  27. return s
  28. }
  29. func (s *ListDocsQuery) SetDocId(v string) *ListDocsQuery {
  30. s.DocId = &v
  31. return s
  32. }
  33. type ListDocsQueryBuilder struct {
  34. s *ListDocsQuery
  35. }
  36. func NewListDocsQueryBuilder() *ListDocsQueryBuilder {
  37. s := &ListDocsQuery{}
  38. b := &ListDocsQueryBuilder{s: s}
  39. return b
  40. }
  41. func (b *ListDocsQueryBuilder) DocName(v string) *ListDocsQueryBuilder {
  42. b.s.DocName = &v
  43. return b
  44. }
  45. func (b *ListDocsQueryBuilder) DocId(v string) *ListDocsQueryBuilder {
  46. b.s.DocId = &v
  47. return b
  48. }
  49. func (b *ListDocsQueryBuilder) Build() *ListDocsQuery {
  50. return b.s
  51. }