Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 

68 строки
1.4 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 EnableDocumentPath struct {
  10. position.Path
  11. // 知识库Id(URL路径参数)
  12. DatasetId *string `json:"datasetId,omitempty"`
  13. // 文档Id(URL路径参数)
  14. DocumentId *string `json:"documentId,omitempty"`
  15. }
  16. func (s EnableDocumentPath) String() string {
  17. return utils.Beautify(s)
  18. }
  19. func (s EnableDocumentPath) GoString() string {
  20. return s.String()
  21. }
  22. func (s EnableDocumentPath) ToJsonString() string {
  23. return utils.ToJsonString(s)
  24. }
  25. func (s *EnableDocumentPath) SetDatasetId(v string) *EnableDocumentPath {
  26. s.DatasetId = &v
  27. return s
  28. }
  29. func (s *EnableDocumentPath) SetDocumentId(v string) *EnableDocumentPath {
  30. s.DocumentId = &v
  31. return s
  32. }
  33. type EnableDocumentPathBuilder struct {
  34. s *EnableDocumentPath
  35. }
  36. func NewEnableDocumentPathBuilder() *EnableDocumentPathBuilder {
  37. s := &EnableDocumentPath{}
  38. b := &EnableDocumentPathBuilder{s: s}
  39. return b
  40. }
  41. func (b *EnableDocumentPathBuilder) DatasetId(v string) *EnableDocumentPathBuilder {
  42. b.s.DatasetId = &v
  43. return b
  44. }
  45. func (b *EnableDocumentPathBuilder) DocumentId(v string) *EnableDocumentPathBuilder {
  46. b.s.DocumentId = &v
  47. return b
  48. }
  49. func (b *EnableDocumentPathBuilder) Build() *EnableDocumentPath {
  50. return b.s
  51. }