更新文档内容

This commit is contained in:
2023-09-26 16:20:01 +08:00
parent 73222eee28
commit d72897f080
415 changed files with 15785 additions and 17558 deletions

View File

@@ -6,7 +6,7 @@ API version: 1.0.0
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
package answer_sdk
import (
"encoding/json"
@@ -20,6 +20,7 @@ type InstallInitBaseInfoReq struct {
ContactEmail string `json:"contact_email"`
Email string `json:"email"`
Lang string `json:"lang"`
LoginRequired *bool `json:"login_required,omitempty"`
Name string `json:"name"`
Password string `json:"password"`
SiteName string `json:"site_name"`
@@ -122,6 +123,38 @@ func (o *InstallInitBaseInfoReq) SetLang(v string) {
o.Lang = v
}
// GetLoginRequired returns the LoginRequired field value if set, zero value otherwise.
func (o *InstallInitBaseInfoReq) GetLoginRequired() bool {
if o == nil || IsNil(o.LoginRequired) {
var ret bool
return ret
}
return *o.LoginRequired
}
// GetLoginRequiredOk returns a tuple with the LoginRequired field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *InstallInitBaseInfoReq) GetLoginRequiredOk() (*bool, bool) {
if o == nil || IsNil(o.LoginRequired) {
return nil, false
}
return o.LoginRequired, true
}
// HasLoginRequired returns a boolean if a field has been set.
func (o *InstallInitBaseInfoReq) HasLoginRequired() bool {
if o != nil && !IsNil(o.LoginRequired) {
return true
}
return false
}
// SetLoginRequired gets a reference to the given bool and assigns it to the LoginRequired field.
func (o *InstallInitBaseInfoReq) SetLoginRequired(v bool) {
o.LoginRequired = &v
}
// GetName returns the Name field value
func (o *InstallInitBaseInfoReq) GetName() string {
if o == nil {
@@ -231,6 +264,9 @@ func (o InstallInitBaseInfoReq) ToMap() (map[string]interface{}, error) {
toSerialize["contact_email"] = o.ContactEmail
toSerialize["email"] = o.Email
toSerialize["lang"] = o.Lang
if !IsNil(o.LoginRequired) {
toSerialize["login_required"] = o.LoginRequired
}
toSerialize["name"] = o.Name
toSerialize["password"] = o.Password
toSerialize["site_name"] = o.SiteName