style: format code

This commit is contained in:
Fu Diwei
2025-04-22 21:24:48 +08:00
parent 3189e65bad
commit f5807d215f
284 changed files with 466 additions and 527 deletions

View File

@@ -5,29 +5,30 @@
package model
import (
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
)
type CreateRecordBodyTypeEnum string
// List of Type
const (
CreateRecordBodyTypeEnumA CreateRecordBodyTypeEnum = "A"
CreateRecordBodyTypeEnumAaaa CreateRecordBodyTypeEnum = "AAAA"
CreateRecordBodyTypeEnumCaa CreateRecordBodyTypeEnum = "CAA"
CreateRecordBodyTypeEnumCmauth CreateRecordBodyTypeEnum = "CMAUTH"
CreateRecordBodyTypeEnumCname CreateRecordBodyTypeEnum = "CNAME"
CreateRecordBodyTypeEnumMx CreateRecordBodyTypeEnum = "MX"
CreateRecordBodyTypeEnumNs CreateRecordBodyTypeEnum = "NS"
CreateRecordBodyTypeEnumPtr CreateRecordBodyTypeEnum = "PTR"
CreateRecordBodyTypeEnumRp CreateRecordBodyTypeEnum = "RP"
CreateRecordBodyTypeEnumSpf CreateRecordBodyTypeEnum = "SPF"
CreateRecordBodyTypeEnumSrv CreateRecordBodyTypeEnum = "SRV"
CreateRecordBodyTypeEnumTxt CreateRecordBodyTypeEnum = "TXT"
CreateRecordBodyTypeEnumUrl CreateRecordBodyTypeEnum = "URL"
CreateRecordBodyTypeEnumA CreateRecordBodyTypeEnum = "A"
CreateRecordBodyTypeEnumAaaa CreateRecordBodyTypeEnum = "AAAA"
CreateRecordBodyTypeEnumCaa CreateRecordBodyTypeEnum = "CAA"
CreateRecordBodyTypeEnumCmauth CreateRecordBodyTypeEnum = "CMAUTH"
CreateRecordBodyTypeEnumCname CreateRecordBodyTypeEnum = "CNAME"
CreateRecordBodyTypeEnumMx CreateRecordBodyTypeEnum = "MX"
CreateRecordBodyTypeEnumNs CreateRecordBodyTypeEnum = "NS"
CreateRecordBodyTypeEnumPtr CreateRecordBodyTypeEnum = "PTR"
CreateRecordBodyTypeEnumRp CreateRecordBodyTypeEnum = "RP"
CreateRecordBodyTypeEnumSpf CreateRecordBodyTypeEnum = "SPF"
CreateRecordBodyTypeEnumSrv CreateRecordBodyTypeEnum = "SRV"
CreateRecordBodyTypeEnumTxt CreateRecordBodyTypeEnum = "TXT"
CreateRecordBodyTypeEnumUrl CreateRecordBodyTypeEnum = "URL"
)
type CreateRecordBody struct {
position.Body
position.Body
// 主机头
Rr string `json:"rr"`

View File

@@ -5,26 +5,27 @@
package model
import (
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
)
type CreateRecordOpenapiBodyTypeEnum string
// List of Type
const (
CreateRecordOpenapiBodyTypeEnumA CreateRecordOpenapiBodyTypeEnum = "A"
CreateRecordOpenapiBodyTypeEnumAaaa CreateRecordOpenapiBodyTypeEnum = "AAAA"
CreateRecordOpenapiBodyTypeEnumCname CreateRecordOpenapiBodyTypeEnum = "CNAME"
CreateRecordOpenapiBodyTypeEnumMx CreateRecordOpenapiBodyTypeEnum = "MX"
CreateRecordOpenapiBodyTypeEnumTxt CreateRecordOpenapiBodyTypeEnum = "TXT"
CreateRecordOpenapiBodyTypeEnumNs CreateRecordOpenapiBodyTypeEnum = "NS"
CreateRecordOpenapiBodyTypeEnumSpf CreateRecordOpenapiBodyTypeEnum = "SPF"
CreateRecordOpenapiBodyTypeEnumSrv CreateRecordOpenapiBodyTypeEnum = "SRV"
CreateRecordOpenapiBodyTypeEnumCaa CreateRecordOpenapiBodyTypeEnum = "CAA"
CreateRecordOpenapiBodyTypeEnumCmauth CreateRecordOpenapiBodyTypeEnum = "CMAUTH"
CreateRecordOpenapiBodyTypeEnumA CreateRecordOpenapiBodyTypeEnum = "A"
CreateRecordOpenapiBodyTypeEnumAaaa CreateRecordOpenapiBodyTypeEnum = "AAAA"
CreateRecordOpenapiBodyTypeEnumCname CreateRecordOpenapiBodyTypeEnum = "CNAME"
CreateRecordOpenapiBodyTypeEnumMx CreateRecordOpenapiBodyTypeEnum = "MX"
CreateRecordOpenapiBodyTypeEnumTxt CreateRecordOpenapiBodyTypeEnum = "TXT"
CreateRecordOpenapiBodyTypeEnumNs CreateRecordOpenapiBodyTypeEnum = "NS"
CreateRecordOpenapiBodyTypeEnumSpf CreateRecordOpenapiBodyTypeEnum = "SPF"
CreateRecordOpenapiBodyTypeEnumSrv CreateRecordOpenapiBodyTypeEnum = "SRV"
CreateRecordOpenapiBodyTypeEnumCaa CreateRecordOpenapiBodyTypeEnum = "CAA"
CreateRecordOpenapiBodyTypeEnumCmauth CreateRecordOpenapiBodyTypeEnum = "CMAUTH"
)
type CreateRecordOpenapiBody struct {
position.Body
position.Body
// 主机头
Rr string `json:"rr"`

View File

@@ -4,9 +4,6 @@
package model
type CreateRecordOpenapiRequest struct {
CreateRecordOpenapiBody *CreateRecordOpenapiBody `json:"createRecordOpenapiBody,omitempty"`
}

View File

@@ -4,19 +4,17 @@
package model
type CreateRecordOpenapiResponseStateEnum string
// List of State
const (
CreateRecordOpenapiResponseStateEnumError CreateRecordOpenapiResponseStateEnum = "ERROR"
CreateRecordOpenapiResponseStateEnumException CreateRecordOpenapiResponseStateEnum = "EXCEPTION"
CreateRecordOpenapiResponseStateEnumForbidden CreateRecordOpenapiResponseStateEnum = "FORBIDDEN"
CreateRecordOpenapiResponseStateEnumOk CreateRecordOpenapiResponseStateEnum = "OK"
CreateRecordOpenapiResponseStateEnumError CreateRecordOpenapiResponseStateEnum = "ERROR"
CreateRecordOpenapiResponseStateEnumException CreateRecordOpenapiResponseStateEnum = "EXCEPTION"
CreateRecordOpenapiResponseStateEnumForbidden CreateRecordOpenapiResponseStateEnum = "FORBIDDEN"
CreateRecordOpenapiResponseStateEnumOk CreateRecordOpenapiResponseStateEnum = "OK"
)
type CreateRecordOpenapiResponse struct {
RequestId string `json:"requestId,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`

View File

@@ -4,32 +4,31 @@
package model
type CreateRecordOpenapiResponseBodyTypeEnum string
// List of Type
const (
CreateRecordOpenapiResponseBodyTypeEnumA CreateRecordOpenapiResponseBodyTypeEnum = "A"
CreateRecordOpenapiResponseBodyTypeEnumAaaa CreateRecordOpenapiResponseBodyTypeEnum = "AAAA"
CreateRecordOpenapiResponseBodyTypeEnumCname CreateRecordOpenapiResponseBodyTypeEnum = "CNAME"
CreateRecordOpenapiResponseBodyTypeEnumMx CreateRecordOpenapiResponseBodyTypeEnum = "MX"
CreateRecordOpenapiResponseBodyTypeEnumTxt CreateRecordOpenapiResponseBodyTypeEnum = "TXT"
CreateRecordOpenapiResponseBodyTypeEnumNs CreateRecordOpenapiResponseBodyTypeEnum = "NS"
CreateRecordOpenapiResponseBodyTypeEnumSpf CreateRecordOpenapiResponseBodyTypeEnum = "SPF"
CreateRecordOpenapiResponseBodyTypeEnumSrv CreateRecordOpenapiResponseBodyTypeEnum = "SRV"
CreateRecordOpenapiResponseBodyTypeEnumCaa CreateRecordOpenapiResponseBodyTypeEnum = "CAA"
CreateRecordOpenapiResponseBodyTypeEnumCmauth CreateRecordOpenapiResponseBodyTypeEnum = "CMAUTH"
CreateRecordOpenapiResponseBodyTypeEnumA CreateRecordOpenapiResponseBodyTypeEnum = "A"
CreateRecordOpenapiResponseBodyTypeEnumAaaa CreateRecordOpenapiResponseBodyTypeEnum = "AAAA"
CreateRecordOpenapiResponseBodyTypeEnumCname CreateRecordOpenapiResponseBodyTypeEnum = "CNAME"
CreateRecordOpenapiResponseBodyTypeEnumMx CreateRecordOpenapiResponseBodyTypeEnum = "MX"
CreateRecordOpenapiResponseBodyTypeEnumTxt CreateRecordOpenapiResponseBodyTypeEnum = "TXT"
CreateRecordOpenapiResponseBodyTypeEnumNs CreateRecordOpenapiResponseBodyTypeEnum = "NS"
CreateRecordOpenapiResponseBodyTypeEnumSpf CreateRecordOpenapiResponseBodyTypeEnum = "SPF"
CreateRecordOpenapiResponseBodyTypeEnumSrv CreateRecordOpenapiResponseBodyTypeEnum = "SRV"
CreateRecordOpenapiResponseBodyTypeEnumCaa CreateRecordOpenapiResponseBodyTypeEnum = "CAA"
CreateRecordOpenapiResponseBodyTypeEnumCmauth CreateRecordOpenapiResponseBodyTypeEnum = "CMAUTH"
)
type CreateRecordOpenapiResponseBodyStateEnum string
// List of State
const (
CreateRecordOpenapiResponseBodyStateEnumDisabled CreateRecordOpenapiResponseBodyStateEnum = "DISABLED"
CreateRecordOpenapiResponseBodyStateEnumEnabled CreateRecordOpenapiResponseBodyStateEnum = "ENABLED"
CreateRecordOpenapiResponseBodyStateEnumDisabled CreateRecordOpenapiResponseBodyStateEnum = "DISABLED"
CreateRecordOpenapiResponseBodyStateEnumEnabled CreateRecordOpenapiResponseBodyStateEnum = "ENABLED"
)
type CreateRecordOpenapiResponseBody struct {
// 主机头
Rr string `json:"rr,omitempty"`

View File

@@ -4,10 +4,7 @@
package model
type CreateRecordOpenapiResponseTags struct {
// 标签ID
TagId string `json:"tagId,omitempty"`

View File

@@ -4,9 +4,6 @@
package model
type CreateRecordRequest struct {
CreateRecordBody *CreateRecordBody `json:"createRecordBody,omitempty"`
}

View File

@@ -4,19 +4,17 @@
package model
type CreateRecordResponseStateEnum string
// List of State
const (
CreateRecordResponseStateEnumError CreateRecordResponseStateEnum = "ERROR"
CreateRecordResponseStateEnumException CreateRecordResponseStateEnum = "EXCEPTION"
CreateRecordResponseStateEnumForbidden CreateRecordResponseStateEnum = "FORBIDDEN"
CreateRecordResponseStateEnumOk CreateRecordResponseStateEnum = "OK"
CreateRecordResponseStateEnumError CreateRecordResponseStateEnum = "ERROR"
CreateRecordResponseStateEnumException CreateRecordResponseStateEnum = "EXCEPTION"
CreateRecordResponseStateEnumForbidden CreateRecordResponseStateEnum = "FORBIDDEN"
CreateRecordResponseStateEnumOk CreateRecordResponseStateEnum = "OK"
)
type CreateRecordResponse struct {
RequestId string `json:"requestId,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`

View File

@@ -4,43 +4,43 @@
package model
type CreateRecordResponseBodyTypeEnum string
// List of Type
const (
CreateRecordResponseBodyTypeEnumA CreateRecordResponseBodyTypeEnum = "A"
CreateRecordResponseBodyTypeEnumAaaa CreateRecordResponseBodyTypeEnum = "AAAA"
CreateRecordResponseBodyTypeEnumCaa CreateRecordResponseBodyTypeEnum = "CAA"
CreateRecordResponseBodyTypeEnumCmauth CreateRecordResponseBodyTypeEnum = "CMAUTH"
CreateRecordResponseBodyTypeEnumCname CreateRecordResponseBodyTypeEnum = "CNAME"
CreateRecordResponseBodyTypeEnumMx CreateRecordResponseBodyTypeEnum = "MX"
CreateRecordResponseBodyTypeEnumNs CreateRecordResponseBodyTypeEnum = "NS"
CreateRecordResponseBodyTypeEnumPtr CreateRecordResponseBodyTypeEnum = "PTR"
CreateRecordResponseBodyTypeEnumRp CreateRecordResponseBodyTypeEnum = "RP"
CreateRecordResponseBodyTypeEnumSpf CreateRecordResponseBodyTypeEnum = "SPF"
CreateRecordResponseBodyTypeEnumSrv CreateRecordResponseBodyTypeEnum = "SRV"
CreateRecordResponseBodyTypeEnumTxt CreateRecordResponseBodyTypeEnum = "TXT"
CreateRecordResponseBodyTypeEnumUrl CreateRecordResponseBodyTypeEnum = "URL"
CreateRecordResponseBodyTypeEnumA CreateRecordResponseBodyTypeEnum = "A"
CreateRecordResponseBodyTypeEnumAaaa CreateRecordResponseBodyTypeEnum = "AAAA"
CreateRecordResponseBodyTypeEnumCaa CreateRecordResponseBodyTypeEnum = "CAA"
CreateRecordResponseBodyTypeEnumCmauth CreateRecordResponseBodyTypeEnum = "CMAUTH"
CreateRecordResponseBodyTypeEnumCname CreateRecordResponseBodyTypeEnum = "CNAME"
CreateRecordResponseBodyTypeEnumMx CreateRecordResponseBodyTypeEnum = "MX"
CreateRecordResponseBodyTypeEnumNs CreateRecordResponseBodyTypeEnum = "NS"
CreateRecordResponseBodyTypeEnumPtr CreateRecordResponseBodyTypeEnum = "PTR"
CreateRecordResponseBodyTypeEnumRp CreateRecordResponseBodyTypeEnum = "RP"
CreateRecordResponseBodyTypeEnumSpf CreateRecordResponseBodyTypeEnum = "SPF"
CreateRecordResponseBodyTypeEnumSrv CreateRecordResponseBodyTypeEnum = "SRV"
CreateRecordResponseBodyTypeEnumTxt CreateRecordResponseBodyTypeEnum = "TXT"
CreateRecordResponseBodyTypeEnumUrl CreateRecordResponseBodyTypeEnum = "URL"
)
type CreateRecordResponseBodyTimedStatusEnum string
// List of TimedStatus
const (
CreateRecordResponseBodyTimedStatusEnumDisabled CreateRecordResponseBodyTimedStatusEnum = "DISABLED"
CreateRecordResponseBodyTimedStatusEnumEnabled CreateRecordResponseBodyTimedStatusEnum = "ENABLED"
CreateRecordResponseBodyTimedStatusEnumTimed CreateRecordResponseBodyTimedStatusEnum = "TIMED"
CreateRecordResponseBodyTimedStatusEnumDisabled CreateRecordResponseBodyTimedStatusEnum = "DISABLED"
CreateRecordResponseBodyTimedStatusEnumEnabled CreateRecordResponseBodyTimedStatusEnum = "ENABLED"
CreateRecordResponseBodyTimedStatusEnumTimed CreateRecordResponseBodyTimedStatusEnum = "TIMED"
)
type CreateRecordResponseBodyStateEnum string
// List of State
const (
CreateRecordResponseBodyStateEnumDisabled CreateRecordResponseBodyStateEnum = "DISABLED"
CreateRecordResponseBodyStateEnumEnabled CreateRecordResponseBodyStateEnum = "ENABLED"
CreateRecordResponseBodyStateEnumDisabled CreateRecordResponseBodyStateEnum = "DISABLED"
CreateRecordResponseBodyStateEnumEnabled CreateRecordResponseBodyStateEnum = "ENABLED"
)
type CreateRecordResponseBody struct {
// 主机头
Rr string `json:"rr,omitempty"`

View File

@@ -4,10 +4,7 @@
package model
type CreateRecordResponseTags struct {
// 标签ID
TagId string `json:"tagId,omitempty"`

View File

@@ -5,11 +5,11 @@
package model
import (
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
)
type DeleteRecordBody struct {
position.Body
position.Body
// 解析记录ID列表
RecordIdList []string `json:"recordIdList"`
}

View File

@@ -5,11 +5,11 @@
package model
import (
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
)
type DeleteRecordOpenapiBody struct {
position.Body
position.Body
// 待删除的解析记录ID请求体
RecordIdList []string `json:"recordIdList"`
}

View File

@@ -4,9 +4,6 @@
package model
type DeleteRecordOpenapiRequest struct {
DeleteRecordOpenapiBody *DeleteRecordOpenapiBody `json:"deleteRecordOpenapiBody,omitempty"`
}

View File

@@ -4,19 +4,17 @@
package model
type DeleteRecordOpenapiResponseStateEnum string
// List of State
const (
DeleteRecordOpenapiResponseStateEnumError DeleteRecordOpenapiResponseStateEnum = "ERROR"
DeleteRecordOpenapiResponseStateEnumException DeleteRecordOpenapiResponseStateEnum = "EXCEPTION"
DeleteRecordOpenapiResponseStateEnumForbidden DeleteRecordOpenapiResponseStateEnum = "FORBIDDEN"
DeleteRecordOpenapiResponseStateEnumOk DeleteRecordOpenapiResponseStateEnum = "OK"
DeleteRecordOpenapiResponseStateEnumError DeleteRecordOpenapiResponseStateEnum = "ERROR"
DeleteRecordOpenapiResponseStateEnumException DeleteRecordOpenapiResponseStateEnum = "EXCEPTION"
DeleteRecordOpenapiResponseStateEnumForbidden DeleteRecordOpenapiResponseStateEnum = "FORBIDDEN"
DeleteRecordOpenapiResponseStateEnumOk DeleteRecordOpenapiResponseStateEnum = "OK"
)
type DeleteRecordOpenapiResponse struct {
RequestId string `json:"requestId,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`

View File

@@ -4,17 +4,15 @@
package model
type DeleteRecordOpenapiResponseBodyCodeEnum string
// List of Code
const (
DeleteRecordOpenapiResponseBodyCodeEnumError DeleteRecordOpenapiResponseBodyCodeEnum = "ERROR"
DeleteRecordOpenapiResponseBodyCodeEnumSuccess DeleteRecordOpenapiResponseBodyCodeEnum = "SUCCESS"
DeleteRecordOpenapiResponseBodyCodeEnumError DeleteRecordOpenapiResponseBodyCodeEnum = "ERROR"
DeleteRecordOpenapiResponseBodyCodeEnumSuccess DeleteRecordOpenapiResponseBodyCodeEnum = "SUCCESS"
)
type DeleteRecordOpenapiResponseBody struct {
// 结果说明
Msg string `json:"msg,omitempty"`

View File

@@ -4,9 +4,6 @@
package model
type DeleteRecordRequest struct {
DeleteRecordBody *DeleteRecordBody `json:"deleteRecordBody,omitempty"`
}

View File

@@ -4,19 +4,17 @@
package model
type DeleteRecordResponseStateEnum string
// List of State
const (
DeleteRecordResponseStateEnumError DeleteRecordResponseStateEnum = "ERROR"
DeleteRecordResponseStateEnumException DeleteRecordResponseStateEnum = "EXCEPTION"
DeleteRecordResponseStateEnumForbidden DeleteRecordResponseStateEnum = "FORBIDDEN"
DeleteRecordResponseStateEnumOk DeleteRecordResponseStateEnum = "OK"
DeleteRecordResponseStateEnumError DeleteRecordResponseStateEnum = "ERROR"
DeleteRecordResponseStateEnumException DeleteRecordResponseStateEnum = "EXCEPTION"
DeleteRecordResponseStateEnumForbidden DeleteRecordResponseStateEnum = "FORBIDDEN"
DeleteRecordResponseStateEnumOk DeleteRecordResponseStateEnum = "OK"
)
type DeleteRecordResponse struct {
RequestId string `json:"requestId,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`

View File

@@ -4,17 +4,15 @@
package model
type DeleteRecordResponseBodyCodeEnum string
// List of Code
const (
DeleteRecordResponseBodyCodeEnumError DeleteRecordResponseBodyCodeEnum = "ERROR"
DeleteRecordResponseBodyCodeEnumSuccess DeleteRecordResponseBodyCodeEnum = "SUCCESS"
DeleteRecordResponseBodyCodeEnumError DeleteRecordResponseBodyCodeEnum = "ERROR"
DeleteRecordResponseBodyCodeEnumSuccess DeleteRecordResponseBodyCodeEnum = "SUCCESS"
)
type DeleteRecordResponseBody struct {
// 结果说明
Msg string `json:"msg,omitempty"`

View File

@@ -5,11 +5,11 @@
package model
import (
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
)
type ListRecordBody struct {
position.Body
position.Body
// 域名
DomainName string `json:"domainName"`

View File

@@ -5,11 +5,11 @@
package model
import (
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
)
type ListRecordOpenapiBody struct {
position.Body
position.Body
// 域名
DomainName string `json:"domainName"`
}

View File

@@ -5,11 +5,11 @@
package model
import (
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
)
type ListRecordOpenapiQuery struct {
position.Query
position.Query
// 页大小
PageSize *int32 `json:"pageSize,omitempty"`

View File

@@ -4,10 +4,7 @@
package model
type ListRecordOpenapiRequest struct {
ListRecordOpenapiQuery *ListRecordOpenapiQuery `json:"listRecordOpenapiQuery,omitempty"`
ListRecordOpenapiBody *ListRecordOpenapiBody `json:"listRecordOpenapiBody,omitempty"`

View File

@@ -4,19 +4,17 @@
package model
type ListRecordOpenapiResponseStateEnum string
// List of State
const (
ListRecordOpenapiResponseStateEnumError ListRecordOpenapiResponseStateEnum = "ERROR"
ListRecordOpenapiResponseStateEnumException ListRecordOpenapiResponseStateEnum = "EXCEPTION"
ListRecordOpenapiResponseStateEnumForbidden ListRecordOpenapiResponseStateEnum = "FORBIDDEN"
ListRecordOpenapiResponseStateEnumOk ListRecordOpenapiResponseStateEnum = "OK"
ListRecordOpenapiResponseStateEnumError ListRecordOpenapiResponseStateEnum = "ERROR"
ListRecordOpenapiResponseStateEnumException ListRecordOpenapiResponseStateEnum = "EXCEPTION"
ListRecordOpenapiResponseStateEnumForbidden ListRecordOpenapiResponseStateEnum = "FORBIDDEN"
ListRecordOpenapiResponseStateEnumOk ListRecordOpenapiResponseStateEnum = "OK"
)
type ListRecordOpenapiResponse struct {
RequestId string `json:"requestId,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`

View File

@@ -4,10 +4,7 @@
package model
type ListRecordOpenapiResponseBody struct {
// 当前页的具体数据列表
Data *[]ListRecordOpenapiResponseData `json:"data,omitempty"`

View File

@@ -4,40 +4,40 @@
package model
type ListRecordOpenapiResponseDataTypeEnum string
// List of Type
const (
ListRecordOpenapiResponseDataTypeEnumA ListRecordOpenapiResponseDataTypeEnum = "A"
ListRecordOpenapiResponseDataTypeEnumAaaa ListRecordOpenapiResponseDataTypeEnum = "AAAA"
ListRecordOpenapiResponseDataTypeEnumCname ListRecordOpenapiResponseDataTypeEnum = "CNAME"
ListRecordOpenapiResponseDataTypeEnumMx ListRecordOpenapiResponseDataTypeEnum = "MX"
ListRecordOpenapiResponseDataTypeEnumTxt ListRecordOpenapiResponseDataTypeEnum = "TXT"
ListRecordOpenapiResponseDataTypeEnumNs ListRecordOpenapiResponseDataTypeEnum = "NS"
ListRecordOpenapiResponseDataTypeEnumSpf ListRecordOpenapiResponseDataTypeEnum = "SPF"
ListRecordOpenapiResponseDataTypeEnumSrv ListRecordOpenapiResponseDataTypeEnum = "SRV"
ListRecordOpenapiResponseDataTypeEnumCaa ListRecordOpenapiResponseDataTypeEnum = "CAA"
ListRecordOpenapiResponseDataTypeEnumCmauth ListRecordOpenapiResponseDataTypeEnum = "CMAUTH"
ListRecordOpenapiResponseDataTypeEnumA ListRecordOpenapiResponseDataTypeEnum = "A"
ListRecordOpenapiResponseDataTypeEnumAaaa ListRecordOpenapiResponseDataTypeEnum = "AAAA"
ListRecordOpenapiResponseDataTypeEnumCname ListRecordOpenapiResponseDataTypeEnum = "CNAME"
ListRecordOpenapiResponseDataTypeEnumMx ListRecordOpenapiResponseDataTypeEnum = "MX"
ListRecordOpenapiResponseDataTypeEnumTxt ListRecordOpenapiResponseDataTypeEnum = "TXT"
ListRecordOpenapiResponseDataTypeEnumNs ListRecordOpenapiResponseDataTypeEnum = "NS"
ListRecordOpenapiResponseDataTypeEnumSpf ListRecordOpenapiResponseDataTypeEnum = "SPF"
ListRecordOpenapiResponseDataTypeEnumSrv ListRecordOpenapiResponseDataTypeEnum = "SRV"
ListRecordOpenapiResponseDataTypeEnumCaa ListRecordOpenapiResponseDataTypeEnum = "CAA"
ListRecordOpenapiResponseDataTypeEnumCmauth ListRecordOpenapiResponseDataTypeEnum = "CMAUTH"
)
type ListRecordOpenapiResponseDataTimedStatusEnum string
// List of TimedStatus
const (
ListRecordOpenapiResponseDataTimedStatusEnumDisabled ListRecordOpenapiResponseDataTimedStatusEnum = "DISABLED"
ListRecordOpenapiResponseDataTimedStatusEnumEnabled ListRecordOpenapiResponseDataTimedStatusEnum = "ENABLED"
ListRecordOpenapiResponseDataTimedStatusEnumTimed ListRecordOpenapiResponseDataTimedStatusEnum = "TIMED"
ListRecordOpenapiResponseDataTimedStatusEnumDisabled ListRecordOpenapiResponseDataTimedStatusEnum = "DISABLED"
ListRecordOpenapiResponseDataTimedStatusEnumEnabled ListRecordOpenapiResponseDataTimedStatusEnum = "ENABLED"
ListRecordOpenapiResponseDataTimedStatusEnumTimed ListRecordOpenapiResponseDataTimedStatusEnum = "TIMED"
)
type ListRecordOpenapiResponseDataStateEnum string
// List of State
const (
ListRecordOpenapiResponseDataStateEnumDisabled ListRecordOpenapiResponseDataStateEnum = "DISABLED"
ListRecordOpenapiResponseDataStateEnumEnabled ListRecordOpenapiResponseDataStateEnum = "ENABLED"
ListRecordOpenapiResponseDataStateEnumDisabled ListRecordOpenapiResponseDataStateEnum = "DISABLED"
ListRecordOpenapiResponseDataStateEnumEnabled ListRecordOpenapiResponseDataStateEnum = "ENABLED"
)
type ListRecordOpenapiResponseData struct {
// 主机头
Rr string `json:"rr,omitempty"`

View File

@@ -4,10 +4,7 @@
package model
type ListRecordOpenapiResponseTags struct {
// 标签ID
TagId string `json:"tagId,omitempty"`

View File

@@ -5,11 +5,11 @@
package model
import (
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
)
type ListRecordQuery struct {
position.Query
position.Query
// 页大小
PageSize *int32 `json:"pageSize,omitempty"`

View File

@@ -4,10 +4,7 @@
package model
type ListRecordRequest struct {
ListRecordBody *ListRecordBody `json:"listRecordBody,omitempty"`
ListRecordQuery *ListRecordQuery `json:"listRecordQuery,omitempty"`

View File

@@ -4,19 +4,17 @@
package model
type ListRecordResponseStateEnum string
// List of State
const (
ListRecordResponseStateEnumError ListRecordResponseStateEnum = "ERROR"
ListRecordResponseStateEnumException ListRecordResponseStateEnum = "EXCEPTION"
ListRecordResponseStateEnumForbidden ListRecordResponseStateEnum = "FORBIDDEN"
ListRecordResponseStateEnumOk ListRecordResponseStateEnum = "OK"
ListRecordResponseStateEnumError ListRecordResponseStateEnum = "ERROR"
ListRecordResponseStateEnumException ListRecordResponseStateEnum = "EXCEPTION"
ListRecordResponseStateEnumForbidden ListRecordResponseStateEnum = "FORBIDDEN"
ListRecordResponseStateEnumOk ListRecordResponseStateEnum = "OK"
)
type ListRecordResponse struct {
RequestId string `json:"requestId,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`

View File

@@ -4,10 +4,7 @@
package model
type ListRecordResponseBody struct {
// 总页数
TotalPages *int32 `json:"totalPages,omitempty"`

View File

@@ -4,43 +4,43 @@
package model
type ListRecordResponseResultsTypeEnum string
// List of Type
const (
ListRecordResponseResultsTypeEnumA ListRecordResponseResultsTypeEnum = "A"
ListRecordResponseResultsTypeEnumAaaa ListRecordResponseResultsTypeEnum = "AAAA"
ListRecordResponseResultsTypeEnumCaa ListRecordResponseResultsTypeEnum = "CAA"
ListRecordResponseResultsTypeEnumCmauth ListRecordResponseResultsTypeEnum = "CMAUTH"
ListRecordResponseResultsTypeEnumCname ListRecordResponseResultsTypeEnum = "CNAME"
ListRecordResponseResultsTypeEnumMx ListRecordResponseResultsTypeEnum = "MX"
ListRecordResponseResultsTypeEnumNs ListRecordResponseResultsTypeEnum = "NS"
ListRecordResponseResultsTypeEnumPtr ListRecordResponseResultsTypeEnum = "PTR"
ListRecordResponseResultsTypeEnumRp ListRecordResponseResultsTypeEnum = "RP"
ListRecordResponseResultsTypeEnumSpf ListRecordResponseResultsTypeEnum = "SPF"
ListRecordResponseResultsTypeEnumSrv ListRecordResponseResultsTypeEnum = "SRV"
ListRecordResponseResultsTypeEnumTxt ListRecordResponseResultsTypeEnum = "TXT"
ListRecordResponseResultsTypeEnumUrl ListRecordResponseResultsTypeEnum = "URL"
ListRecordResponseResultsTypeEnumA ListRecordResponseResultsTypeEnum = "A"
ListRecordResponseResultsTypeEnumAaaa ListRecordResponseResultsTypeEnum = "AAAA"
ListRecordResponseResultsTypeEnumCaa ListRecordResponseResultsTypeEnum = "CAA"
ListRecordResponseResultsTypeEnumCmauth ListRecordResponseResultsTypeEnum = "CMAUTH"
ListRecordResponseResultsTypeEnumCname ListRecordResponseResultsTypeEnum = "CNAME"
ListRecordResponseResultsTypeEnumMx ListRecordResponseResultsTypeEnum = "MX"
ListRecordResponseResultsTypeEnumNs ListRecordResponseResultsTypeEnum = "NS"
ListRecordResponseResultsTypeEnumPtr ListRecordResponseResultsTypeEnum = "PTR"
ListRecordResponseResultsTypeEnumRp ListRecordResponseResultsTypeEnum = "RP"
ListRecordResponseResultsTypeEnumSpf ListRecordResponseResultsTypeEnum = "SPF"
ListRecordResponseResultsTypeEnumSrv ListRecordResponseResultsTypeEnum = "SRV"
ListRecordResponseResultsTypeEnumTxt ListRecordResponseResultsTypeEnum = "TXT"
ListRecordResponseResultsTypeEnumUrl ListRecordResponseResultsTypeEnum = "URL"
)
type ListRecordResponseResultsTimedStatusEnum string
// List of TimedStatus
const (
ListRecordResponseResultsTimedStatusEnumDisabled ListRecordResponseResultsTimedStatusEnum = "DISABLED"
ListRecordResponseResultsTimedStatusEnumEnabled ListRecordResponseResultsTimedStatusEnum = "ENABLED"
ListRecordResponseResultsTimedStatusEnumTimed ListRecordResponseResultsTimedStatusEnum = "TIMED"
ListRecordResponseResultsTimedStatusEnumDisabled ListRecordResponseResultsTimedStatusEnum = "DISABLED"
ListRecordResponseResultsTimedStatusEnumEnabled ListRecordResponseResultsTimedStatusEnum = "ENABLED"
ListRecordResponseResultsTimedStatusEnumTimed ListRecordResponseResultsTimedStatusEnum = "TIMED"
)
type ListRecordResponseResultsStateEnum string
// List of State
const (
ListRecordResponseResultsStateEnumDisabled ListRecordResponseResultsStateEnum = "DISABLED"
ListRecordResponseResultsStateEnumEnabled ListRecordResponseResultsStateEnum = "ENABLED"
ListRecordResponseResultsStateEnumDisabled ListRecordResponseResultsStateEnum = "DISABLED"
ListRecordResponseResultsStateEnumEnabled ListRecordResponseResultsStateEnum = "ENABLED"
)
type ListRecordResponseResults struct {
// 主机头
Rr string `json:"rr,omitempty"`

View File

@@ -5,29 +5,30 @@
package model
import (
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
)
type ModifyRecordBodyTypeEnum string
// List of Type
const (
ModifyRecordBodyTypeEnumA ModifyRecordBodyTypeEnum = "A"
ModifyRecordBodyTypeEnumAaaa ModifyRecordBodyTypeEnum = "AAAA"
ModifyRecordBodyTypeEnumCaa ModifyRecordBodyTypeEnum = "CAA"
ModifyRecordBodyTypeEnumCmauth ModifyRecordBodyTypeEnum = "CMAUTH"
ModifyRecordBodyTypeEnumCname ModifyRecordBodyTypeEnum = "CNAME"
ModifyRecordBodyTypeEnumMx ModifyRecordBodyTypeEnum = "MX"
ModifyRecordBodyTypeEnumNs ModifyRecordBodyTypeEnum = "NS"
ModifyRecordBodyTypeEnumPtr ModifyRecordBodyTypeEnum = "PTR"
ModifyRecordBodyTypeEnumRp ModifyRecordBodyTypeEnum = "RP"
ModifyRecordBodyTypeEnumSpf ModifyRecordBodyTypeEnum = "SPF"
ModifyRecordBodyTypeEnumSrv ModifyRecordBodyTypeEnum = "SRV"
ModifyRecordBodyTypeEnumTxt ModifyRecordBodyTypeEnum = "TXT"
ModifyRecordBodyTypeEnumUrl ModifyRecordBodyTypeEnum = "URL"
ModifyRecordBodyTypeEnumA ModifyRecordBodyTypeEnum = "A"
ModifyRecordBodyTypeEnumAaaa ModifyRecordBodyTypeEnum = "AAAA"
ModifyRecordBodyTypeEnumCaa ModifyRecordBodyTypeEnum = "CAA"
ModifyRecordBodyTypeEnumCmauth ModifyRecordBodyTypeEnum = "CMAUTH"
ModifyRecordBodyTypeEnumCname ModifyRecordBodyTypeEnum = "CNAME"
ModifyRecordBodyTypeEnumMx ModifyRecordBodyTypeEnum = "MX"
ModifyRecordBodyTypeEnumNs ModifyRecordBodyTypeEnum = "NS"
ModifyRecordBodyTypeEnumPtr ModifyRecordBodyTypeEnum = "PTR"
ModifyRecordBodyTypeEnumRp ModifyRecordBodyTypeEnum = "RP"
ModifyRecordBodyTypeEnumSpf ModifyRecordBodyTypeEnum = "SPF"
ModifyRecordBodyTypeEnumSrv ModifyRecordBodyTypeEnum = "SRV"
ModifyRecordBodyTypeEnumTxt ModifyRecordBodyTypeEnum = "TXT"
ModifyRecordBodyTypeEnumUrl ModifyRecordBodyTypeEnum = "URL"
)
type ModifyRecordBody struct {
position.Body
position.Body
// 解析记录ID
RecordId string `json:"recordId"`

View File

@@ -5,26 +5,27 @@
package model
import (
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
"gitlab.ecloud.com/ecloud/ecloudsdkcore/position"
)
type ModifyRecordOpenapiBodyTypeEnum string
// List of Type
const (
ModifyRecordOpenapiBodyTypeEnumA ModifyRecordOpenapiBodyTypeEnum = "A"
ModifyRecordOpenapiBodyTypeEnumAaaa ModifyRecordOpenapiBodyTypeEnum = "AAAA"
ModifyRecordOpenapiBodyTypeEnumCname ModifyRecordOpenapiBodyTypeEnum = "CNAME"
ModifyRecordOpenapiBodyTypeEnumMx ModifyRecordOpenapiBodyTypeEnum = "MX"
ModifyRecordOpenapiBodyTypeEnumTxt ModifyRecordOpenapiBodyTypeEnum = "TXT"
ModifyRecordOpenapiBodyTypeEnumNs ModifyRecordOpenapiBodyTypeEnum = "NS"
ModifyRecordOpenapiBodyTypeEnumSpf ModifyRecordOpenapiBodyTypeEnum = "SPF"
ModifyRecordOpenapiBodyTypeEnumSrv ModifyRecordOpenapiBodyTypeEnum = "SRV"
ModifyRecordOpenapiBodyTypeEnumCaa ModifyRecordOpenapiBodyTypeEnum = "CAA"
ModifyRecordOpenapiBodyTypeEnumCmauth ModifyRecordOpenapiBodyTypeEnum = "CMAUTH"
ModifyRecordOpenapiBodyTypeEnumA ModifyRecordOpenapiBodyTypeEnum = "A"
ModifyRecordOpenapiBodyTypeEnumAaaa ModifyRecordOpenapiBodyTypeEnum = "AAAA"
ModifyRecordOpenapiBodyTypeEnumCname ModifyRecordOpenapiBodyTypeEnum = "CNAME"
ModifyRecordOpenapiBodyTypeEnumMx ModifyRecordOpenapiBodyTypeEnum = "MX"
ModifyRecordOpenapiBodyTypeEnumTxt ModifyRecordOpenapiBodyTypeEnum = "TXT"
ModifyRecordOpenapiBodyTypeEnumNs ModifyRecordOpenapiBodyTypeEnum = "NS"
ModifyRecordOpenapiBodyTypeEnumSpf ModifyRecordOpenapiBodyTypeEnum = "SPF"
ModifyRecordOpenapiBodyTypeEnumSrv ModifyRecordOpenapiBodyTypeEnum = "SRV"
ModifyRecordOpenapiBodyTypeEnumCaa ModifyRecordOpenapiBodyTypeEnum = "CAA"
ModifyRecordOpenapiBodyTypeEnumCmauth ModifyRecordOpenapiBodyTypeEnum = "CMAUTH"
)
type ModifyRecordOpenapiBody struct {
position.Body
position.Body
// 解析记录ID
RecordId string `json:"recordId"`

View File

@@ -4,9 +4,6 @@
package model
type ModifyRecordOpenapiRequest struct {
ModifyRecordOpenapiBody *ModifyRecordOpenapiBody `json:"modifyRecordOpenapiBody,omitempty"`
}

View File

@@ -4,19 +4,17 @@
package model
type ModifyRecordOpenapiResponseStateEnum string
// List of State
const (
ModifyRecordOpenapiResponseStateEnumError ModifyRecordOpenapiResponseStateEnum = "ERROR"
ModifyRecordOpenapiResponseStateEnumException ModifyRecordOpenapiResponseStateEnum = "EXCEPTION"
ModifyRecordOpenapiResponseStateEnumForbidden ModifyRecordOpenapiResponseStateEnum = "FORBIDDEN"
ModifyRecordOpenapiResponseStateEnumOk ModifyRecordOpenapiResponseStateEnum = "OK"
ModifyRecordOpenapiResponseStateEnumError ModifyRecordOpenapiResponseStateEnum = "ERROR"
ModifyRecordOpenapiResponseStateEnumException ModifyRecordOpenapiResponseStateEnum = "EXCEPTION"
ModifyRecordOpenapiResponseStateEnumForbidden ModifyRecordOpenapiResponseStateEnum = "FORBIDDEN"
ModifyRecordOpenapiResponseStateEnumOk ModifyRecordOpenapiResponseStateEnum = "OK"
)
type ModifyRecordOpenapiResponse struct {
RequestId string `json:"requestId,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`

View File

@@ -4,40 +4,40 @@
package model
type ModifyRecordOpenapiResponseBodyTypeEnum string
// List of Type
const (
ModifyRecordOpenapiResponseBodyTypeEnumA ModifyRecordOpenapiResponseBodyTypeEnum = "A"
ModifyRecordOpenapiResponseBodyTypeEnumAaaa ModifyRecordOpenapiResponseBodyTypeEnum = "AAAA"
ModifyRecordOpenapiResponseBodyTypeEnumCname ModifyRecordOpenapiResponseBodyTypeEnum = "CNAME"
ModifyRecordOpenapiResponseBodyTypeEnumMx ModifyRecordOpenapiResponseBodyTypeEnum = "MX"
ModifyRecordOpenapiResponseBodyTypeEnumTxt ModifyRecordOpenapiResponseBodyTypeEnum = "TXT"
ModifyRecordOpenapiResponseBodyTypeEnumNs ModifyRecordOpenapiResponseBodyTypeEnum = "NS"
ModifyRecordOpenapiResponseBodyTypeEnumSpf ModifyRecordOpenapiResponseBodyTypeEnum = "SPF"
ModifyRecordOpenapiResponseBodyTypeEnumSrv ModifyRecordOpenapiResponseBodyTypeEnum = "SRV"
ModifyRecordOpenapiResponseBodyTypeEnumCaa ModifyRecordOpenapiResponseBodyTypeEnum = "CAA"
ModifyRecordOpenapiResponseBodyTypeEnumCmauth ModifyRecordOpenapiResponseBodyTypeEnum = "CMAUTH"
ModifyRecordOpenapiResponseBodyTypeEnumA ModifyRecordOpenapiResponseBodyTypeEnum = "A"
ModifyRecordOpenapiResponseBodyTypeEnumAaaa ModifyRecordOpenapiResponseBodyTypeEnum = "AAAA"
ModifyRecordOpenapiResponseBodyTypeEnumCname ModifyRecordOpenapiResponseBodyTypeEnum = "CNAME"
ModifyRecordOpenapiResponseBodyTypeEnumMx ModifyRecordOpenapiResponseBodyTypeEnum = "MX"
ModifyRecordOpenapiResponseBodyTypeEnumTxt ModifyRecordOpenapiResponseBodyTypeEnum = "TXT"
ModifyRecordOpenapiResponseBodyTypeEnumNs ModifyRecordOpenapiResponseBodyTypeEnum = "NS"
ModifyRecordOpenapiResponseBodyTypeEnumSpf ModifyRecordOpenapiResponseBodyTypeEnum = "SPF"
ModifyRecordOpenapiResponseBodyTypeEnumSrv ModifyRecordOpenapiResponseBodyTypeEnum = "SRV"
ModifyRecordOpenapiResponseBodyTypeEnumCaa ModifyRecordOpenapiResponseBodyTypeEnum = "CAA"
ModifyRecordOpenapiResponseBodyTypeEnumCmauth ModifyRecordOpenapiResponseBodyTypeEnum = "CMAUTH"
)
type ModifyRecordOpenapiResponseBodyTimedStatusEnum string
// List of TimedStatus
const (
ModifyRecordOpenapiResponseBodyTimedStatusEnumDisabled ModifyRecordOpenapiResponseBodyTimedStatusEnum = "DISABLED"
ModifyRecordOpenapiResponseBodyTimedStatusEnumEnabled ModifyRecordOpenapiResponseBodyTimedStatusEnum = "ENABLED"
ModifyRecordOpenapiResponseBodyTimedStatusEnumTimed ModifyRecordOpenapiResponseBodyTimedStatusEnum = "TIMED"
ModifyRecordOpenapiResponseBodyTimedStatusEnumDisabled ModifyRecordOpenapiResponseBodyTimedStatusEnum = "DISABLED"
ModifyRecordOpenapiResponseBodyTimedStatusEnumEnabled ModifyRecordOpenapiResponseBodyTimedStatusEnum = "ENABLED"
ModifyRecordOpenapiResponseBodyTimedStatusEnumTimed ModifyRecordOpenapiResponseBodyTimedStatusEnum = "TIMED"
)
type ModifyRecordOpenapiResponseBodyStateEnum string
// List of State
const (
ModifyRecordOpenapiResponseBodyStateEnumDisabled ModifyRecordOpenapiResponseBodyStateEnum = "DISABLED"
ModifyRecordOpenapiResponseBodyStateEnumEnabled ModifyRecordOpenapiResponseBodyStateEnum = "ENABLED"
ModifyRecordOpenapiResponseBodyStateEnumDisabled ModifyRecordOpenapiResponseBodyStateEnum = "DISABLED"
ModifyRecordOpenapiResponseBodyStateEnumEnabled ModifyRecordOpenapiResponseBodyStateEnum = "ENABLED"
)
type ModifyRecordOpenapiResponseBody struct {
// 主机头
Rr string `json:"rr,omitempty"`

View File

@@ -4,10 +4,7 @@
package model
type ModifyRecordOpenapiResponseTags struct {
// 标签ID
TagId string `json:"tagId,omitempty"`

View File

@@ -4,9 +4,6 @@
package model
type ModifyRecordRequest struct {
ModifyRecordBody *ModifyRecordBody `json:"modifyRecordBody,omitempty"`
}

View File

@@ -4,19 +4,17 @@
package model
type ModifyRecordResponseStateEnum string
// List of State
const (
ModifyRecordResponseStateEnumError ModifyRecordResponseStateEnum = "ERROR"
ModifyRecordResponseStateEnumException ModifyRecordResponseStateEnum = "EXCEPTION"
ModifyRecordResponseStateEnumForbidden ModifyRecordResponseStateEnum = "FORBIDDEN"
ModifyRecordResponseStateEnumOk ModifyRecordResponseStateEnum = "OK"
ModifyRecordResponseStateEnumError ModifyRecordResponseStateEnum = "ERROR"
ModifyRecordResponseStateEnumException ModifyRecordResponseStateEnum = "EXCEPTION"
ModifyRecordResponseStateEnumForbidden ModifyRecordResponseStateEnum = "FORBIDDEN"
ModifyRecordResponseStateEnumOk ModifyRecordResponseStateEnum = "OK"
)
type ModifyRecordResponse struct {
RequestId string `json:"requestId,omitempty"`
ErrorMessage string `json:"errorMessage,omitempty"`

View File

@@ -4,35 +4,34 @@
package model
type ModifyRecordResponseBodyTypeEnum string
// List of Type
const (
ModifyRecordResponseBodyTypeEnumA ModifyRecordResponseBodyTypeEnum = "A"
ModifyRecordResponseBodyTypeEnumAaaa ModifyRecordResponseBodyTypeEnum = "AAAA"
ModifyRecordResponseBodyTypeEnumCaa ModifyRecordResponseBodyTypeEnum = "CAA"
ModifyRecordResponseBodyTypeEnumCmauth ModifyRecordResponseBodyTypeEnum = "CMAUTH"
ModifyRecordResponseBodyTypeEnumCname ModifyRecordResponseBodyTypeEnum = "CNAME"
ModifyRecordResponseBodyTypeEnumMx ModifyRecordResponseBodyTypeEnum = "MX"
ModifyRecordResponseBodyTypeEnumNs ModifyRecordResponseBodyTypeEnum = "NS"
ModifyRecordResponseBodyTypeEnumPtr ModifyRecordResponseBodyTypeEnum = "PTR"
ModifyRecordResponseBodyTypeEnumRp ModifyRecordResponseBodyTypeEnum = "RP"
ModifyRecordResponseBodyTypeEnumSpf ModifyRecordResponseBodyTypeEnum = "SPF"
ModifyRecordResponseBodyTypeEnumSrv ModifyRecordResponseBodyTypeEnum = "SRV"
ModifyRecordResponseBodyTypeEnumTxt ModifyRecordResponseBodyTypeEnum = "TXT"
ModifyRecordResponseBodyTypeEnumUrl ModifyRecordResponseBodyTypeEnum = "URL"
ModifyRecordResponseBodyTypeEnumA ModifyRecordResponseBodyTypeEnum = "A"
ModifyRecordResponseBodyTypeEnumAaaa ModifyRecordResponseBodyTypeEnum = "AAAA"
ModifyRecordResponseBodyTypeEnumCaa ModifyRecordResponseBodyTypeEnum = "CAA"
ModifyRecordResponseBodyTypeEnumCmauth ModifyRecordResponseBodyTypeEnum = "CMAUTH"
ModifyRecordResponseBodyTypeEnumCname ModifyRecordResponseBodyTypeEnum = "CNAME"
ModifyRecordResponseBodyTypeEnumMx ModifyRecordResponseBodyTypeEnum = "MX"
ModifyRecordResponseBodyTypeEnumNs ModifyRecordResponseBodyTypeEnum = "NS"
ModifyRecordResponseBodyTypeEnumPtr ModifyRecordResponseBodyTypeEnum = "PTR"
ModifyRecordResponseBodyTypeEnumRp ModifyRecordResponseBodyTypeEnum = "RP"
ModifyRecordResponseBodyTypeEnumSpf ModifyRecordResponseBodyTypeEnum = "SPF"
ModifyRecordResponseBodyTypeEnumSrv ModifyRecordResponseBodyTypeEnum = "SRV"
ModifyRecordResponseBodyTypeEnumTxt ModifyRecordResponseBodyTypeEnum = "TXT"
ModifyRecordResponseBodyTypeEnumUrl ModifyRecordResponseBodyTypeEnum = "URL"
)
type ModifyRecordResponseBodyStateEnum string
// List of State
const (
ModifyRecordResponseBodyStateEnumDisabled ModifyRecordResponseBodyStateEnum = "DISABLED"
ModifyRecordResponseBodyStateEnumEnabled ModifyRecordResponseBodyStateEnum = "ENABLED"
ModifyRecordResponseBodyStateEnumDisabled ModifyRecordResponseBodyStateEnum = "DISABLED"
ModifyRecordResponseBodyStateEnumEnabled ModifyRecordResponseBodyStateEnum = "ENABLED"
)
type ModifyRecordResponseBody struct {
// 主机头
Rr string `json:"rr,omitempty"`

View File

@@ -6,7 +6,6 @@ import (
"encoding/xml"
"errors"
"fmt"
"gitlab.ecloud.com/ecloud/ecloudsdkcore/config"
"io"
"io/ioutil"
"mime/multipart"
@@ -20,6 +19,8 @@ import (
"strings"
"time"
"unicode/utf8"
"gitlab.ecloud.com/ecloud/ecloudsdkcore/config"
)
var (
@@ -47,8 +48,10 @@ const (
HEADER HttpRequestPosition = "Header"
)
const SdkPortalUrl = "/op-apim-portal/apim/request/sdk"
const SdkPortalGatewayUrl = "/api/query/openapi/apim/request/sdk"
const (
SdkPortalUrl = "/op-apim-portal/apim/request/sdk"
SdkPortalGatewayUrl = "/api/query/openapi/apim/request/sdk"
)
// NewAPIClient creates a new API client.
func NewAPIClient() *APIClient {
@@ -199,7 +202,7 @@ func buildHttpRequest(httpRequest *HttpRequest, config *config.Config) *HttpRequ
if v.Kind() == reflect.Ptr {
v = v.Elem()
}
var flag = false
flag := false
for i := 0; i < reqType.NumField(); i++ {
fieldType := reqType.Field(i)
value := v.FieldByName(fieldType.Name)
@@ -270,7 +273,7 @@ func structToMap(value interface{}) map[string]interface{} {
}
func buildCall(httpRequest *HttpRequest) (request *http.Request) {
var url = ""
url := ""
if len(httpRequest.Url) > 0 {
url = httpRequest.Url + SdkPortalUrl
} else {
@@ -284,12 +287,11 @@ func buildCall(httpRequest *HttpRequest) (request *http.Request) {
func prepareRequest(path string, method string,
postBody interface{},
) (httpRequest *http.Request, err error) {
var body *bytes.Buffer
// Detect postBody type and post.
if postBody != nil {
var contentType = detectContentType(postBody)
contentType := detectContentType(postBody)
body, err = setBody(postBody, contentType)
if err != nil {
return nil, err

View File

@@ -52,13 +52,11 @@ type APIPlatformResponseBody struct {
}
func NewAPIResponse(r *http.Response) *APIResponse {
response := &APIResponse{Response: r}
return response
}
func NewAPIResponseWithError(errorMessage string) *APIResponse {
response := &APIResponse{Message: errorMessage}
return response
}

View File

@@ -1,13 +1,9 @@
package position
type Body struct {
}
type Body struct{}
type Query struct {
}
type Query struct{}
type Path struct {
}
type Path struct{}
type Header struct {
}
type Header struct{}