更新文档内容
This commit is contained in:
@@ -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,12 +17,16 @@ var _ MappedNullable = &SchemaQuestionUpdate{}
|
||||
|
||||
// SchemaQuestionUpdate struct for SchemaQuestionUpdate
|
||||
type SchemaQuestionUpdate struct {
|
||||
CaptchaCode *string `json:"captcha_code,omitempty"`
|
||||
// captcha_id
|
||||
CaptchaId *string `json:"captcha_id,omitempty"`
|
||||
// content
|
||||
Content string `json:"content"`
|
||||
// edit summary
|
||||
EditSummary *string `json:"edit_summary,omitempty"`
|
||||
// question id
|
||||
Id string `json:"id"`
|
||||
InviteUser []string `json:"invite_user,omitempty"`
|
||||
// tags
|
||||
Tags []SchemaTagItem `json:"tags"`
|
||||
// question title
|
||||
@@ -52,6 +54,70 @@ func NewSchemaQuestionUpdateWithDefaults() *SchemaQuestionUpdate {
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionUpdate) 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 *SchemaQuestionUpdate) 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 *SchemaQuestionUpdate) 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 *SchemaQuestionUpdate) SetCaptchaCode(v string) {
|
||||
o.CaptchaCode = &v
|
||||
}
|
||||
|
||||
// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionUpdate) 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 *SchemaQuestionUpdate) 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 *SchemaQuestionUpdate) 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 *SchemaQuestionUpdate) SetCaptchaId(v string) {
|
||||
o.CaptchaId = &v
|
||||
}
|
||||
|
||||
// GetContent returns the Content field value
|
||||
func (o *SchemaQuestionUpdate) GetContent() string {
|
||||
if o == nil {
|
||||
@@ -132,6 +198,38 @@ func (o *SchemaQuestionUpdate) SetId(v string) {
|
||||
o.Id = v
|
||||
}
|
||||
|
||||
// GetInviteUser returns the InviteUser field value if set, zero value otherwise.
|
||||
func (o *SchemaQuestionUpdate) GetInviteUser() []string {
|
||||
if o == nil || IsNil(o.InviteUser) {
|
||||
var ret []string
|
||||
return ret
|
||||
}
|
||||
return o.InviteUser
|
||||
}
|
||||
|
||||
// GetInviteUserOk returns a tuple with the InviteUser field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaQuestionUpdate) GetInviteUserOk() ([]string, bool) {
|
||||
if o == nil || IsNil(o.InviteUser) {
|
||||
return nil, false
|
||||
}
|
||||
return o.InviteUser, true
|
||||
}
|
||||
|
||||
// HasInviteUser returns a boolean if a field has been set.
|
||||
func (o *SchemaQuestionUpdate) HasInviteUser() bool {
|
||||
if o != nil && !IsNil(o.InviteUser) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetInviteUser gets a reference to the given []string and assigns it to the InviteUser field.
|
||||
func (o *SchemaQuestionUpdate) SetInviteUser(v []string) {
|
||||
o.InviteUser = v
|
||||
}
|
||||
|
||||
// GetTags returns the Tags field value
|
||||
func (o *SchemaQuestionUpdate) GetTags() []SchemaTagItem {
|
||||
if o == nil {
|
||||
@@ -190,11 +288,20 @@ func (o SchemaQuestionUpdate) MarshalJSON() ([]byte, error) {
|
||||
|
||||
func (o SchemaQuestionUpdate) 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
|
||||
}
|
||||
toSerialize["id"] = o.Id
|
||||
if !IsNil(o.InviteUser) {
|
||||
toSerialize["invite_user"] = o.InviteUser
|
||||
}
|
||||
toSerialize["tags"] = o.Tags
|
||||
toSerialize["title"] = o.Title
|
||||
return toSerialize, nil
|
||||
|
||||
Reference in New Issue
Block a user