更新文档内容

This commit is contained in:
2023-08-22 10:37:28 +08:00
parent c3f06b456f
commit 73222eee28
329 changed files with 25366 additions and 2475 deletions

View File

@@ -1,9 +1,7 @@
/*
answer
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
answer api
API version: v0.0.1
API version: 1.0.0
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -19,6 +17,9 @@ var _ MappedNullable = &SchemaAnswerUpdateReq{}
// SchemaAnswerUpdateReq struct for SchemaAnswerUpdateReq
type SchemaAnswerUpdateReq struct {
CaptchaCode *string `json:"captcha_code,omitempty"`
// captcha_id
CaptchaId *string `json:"captcha_id,omitempty"`
Content string `json:"content"`
EditSummary *string `json:"edit_summary,omitempty"`
Id *string `json:"id,omitempty"`
@@ -44,6 +45,70 @@ func NewSchemaAnswerUpdateReqWithDefaults() *SchemaAnswerUpdateReq {
return &this
}
// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise.
func (o *SchemaAnswerUpdateReq) GetCaptchaCode() string {
if o == nil || IsNil(o.CaptchaCode) {
var ret string
return ret
}
return *o.CaptchaCode
}
// GetCaptchaCodeOk returns a tuple with the CaptchaCode field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaAnswerUpdateReq) GetCaptchaCodeOk() (*string, bool) {
if o == nil || IsNil(o.CaptchaCode) {
return nil, false
}
return o.CaptchaCode, true
}
// HasCaptchaCode returns a boolean if a field has been set.
func (o *SchemaAnswerUpdateReq) HasCaptchaCode() bool {
if o != nil && !IsNil(o.CaptchaCode) {
return true
}
return false
}
// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field.
func (o *SchemaAnswerUpdateReq) SetCaptchaCode(v string) {
o.CaptchaCode = &v
}
// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise.
func (o *SchemaAnswerUpdateReq) GetCaptchaId() string {
if o == nil || IsNil(o.CaptchaId) {
var ret string
return ret
}
return *o.CaptchaId
}
// GetCaptchaIdOk returns a tuple with the CaptchaId field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *SchemaAnswerUpdateReq) GetCaptchaIdOk() (*string, bool) {
if o == nil || IsNil(o.CaptchaId) {
return nil, false
}
return o.CaptchaId, true
}
// HasCaptchaId returns a boolean if a field has been set.
func (o *SchemaAnswerUpdateReq) HasCaptchaId() bool {
if o != nil && !IsNil(o.CaptchaId) {
return true
}
return false
}
// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field.
func (o *SchemaAnswerUpdateReq) SetCaptchaId(v string) {
o.CaptchaId = &v
}
// GetContent returns the Content field value
func (o *SchemaAnswerUpdateReq) GetContent() string {
if o == nil {
@@ -206,6 +271,12 @@ func (o SchemaAnswerUpdateReq) MarshalJSON() ([]byte, error) {
func (o SchemaAnswerUpdateReq) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
if !IsNil(o.CaptchaCode) {
toSerialize["captcha_code"] = o.CaptchaCode
}
if !IsNil(o.CaptchaId) {
toSerialize["captcha_id"] = o.CaptchaId
}
toSerialize["content"] = o.Content
if !IsNil(o.EditSummary) {
toSerialize["edit_summary"] = o.EditSummary