更新文档内容
This commit is contained in:
@@ -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"
|
||||
@@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerApiV1SearchGet200Response{}
|
||||
|
||||
// AnswerApiV1SearchGet200Response struct for AnswerApiV1SearchGet200Response
|
||||
type AnswerApiV1SearchGet200Response struct {
|
||||
Data *SchemaSearchListResp `json:"data,omitempty"`
|
||||
HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"`
|
||||
// http code
|
||||
Code *int32 `json:"code,omitempty"`
|
||||
Data *SchemaSearchResp `json:"data,omitempty"`
|
||||
// response message
|
||||
Msg *string `json:"msg,omitempty"`
|
||||
// reason key
|
||||
Reason *string `json:"reason,omitempty"`
|
||||
}
|
||||
|
||||
// NewAnswerApiV1SearchGet200Response instantiates a new AnswerApiV1SearchGet200Response object
|
||||
@@ -38,10 +43,42 @@ func NewAnswerApiV1SearchGet200ResponseWithDefaults() *AnswerApiV1SearchGet200Re
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCode returns the Code field value if set, zero value otherwise.
|
||||
func (o *AnswerApiV1SearchGet200Response) GetCode() int32 {
|
||||
if o == nil || IsNil(o.Code) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.Code
|
||||
}
|
||||
|
||||
// GetCodeOk returns a tuple with the Code field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *AnswerApiV1SearchGet200Response) GetCodeOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.Code) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Code, true
|
||||
}
|
||||
|
||||
// HasCode returns a boolean if a field has been set.
|
||||
func (o *AnswerApiV1SearchGet200Response) HasCode() bool {
|
||||
if o != nil && !IsNil(o.Code) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCode gets a reference to the given int32 and assigns it to the Code field.
|
||||
func (o *AnswerApiV1SearchGet200Response) SetCode(v int32) {
|
||||
o.Code = &v
|
||||
}
|
||||
|
||||
// GetData returns the Data field value if set, zero value otherwise.
|
||||
func (o *AnswerApiV1SearchGet200Response) GetData() SchemaSearchListResp {
|
||||
func (o *AnswerApiV1SearchGet200Response) GetData() SchemaSearchResp {
|
||||
if o == nil || IsNil(o.Data) {
|
||||
var ret SchemaSearchListResp
|
||||
var ret SchemaSearchResp
|
||||
return ret
|
||||
}
|
||||
return *o.Data
|
||||
@@ -49,7 +86,7 @@ func (o *AnswerApiV1SearchGet200Response) GetData() SchemaSearchListResp {
|
||||
|
||||
// GetDataOk returns a tuple with the Data field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *AnswerApiV1SearchGet200Response) GetDataOk() (*SchemaSearchListResp, bool) {
|
||||
func (o *AnswerApiV1SearchGet200Response) GetDataOk() (*SchemaSearchResp, bool) {
|
||||
if o == nil || IsNil(o.Data) {
|
||||
return nil, false
|
||||
}
|
||||
@@ -65,41 +102,73 @@ func (o *AnswerApiV1SearchGet200Response) HasData() bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// SetData gets a reference to the given SchemaSearchListResp and assigns it to the Data field.
|
||||
func (o *AnswerApiV1SearchGet200Response) SetData(v SchemaSearchListResp) {
|
||||
// SetData gets a reference to the given SchemaSearchResp and assigns it to the Data field.
|
||||
func (o *AnswerApiV1SearchGet200Response) SetData(v SchemaSearchResp) {
|
||||
o.Data = &v
|
||||
}
|
||||
|
||||
// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise.
|
||||
func (o *AnswerApiV1SearchGet200Response) GetHandlerRespBody() HandlerRespBody {
|
||||
if o == nil || IsNil(o.HandlerRespBody) {
|
||||
var ret HandlerRespBody
|
||||
// GetMsg returns the Msg field value if set, zero value otherwise.
|
||||
func (o *AnswerApiV1SearchGet200Response) GetMsg() string {
|
||||
if o == nil || IsNil(o.Msg) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.HandlerRespBody
|
||||
return *o.Msg
|
||||
}
|
||||
|
||||
// GetHandlerRespBodyOk returns a tuple with the HandlerRespBody field value if set, nil otherwise
|
||||
// GetMsgOk returns a tuple with the Msg field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *AnswerApiV1SearchGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) {
|
||||
if o == nil || IsNil(o.HandlerRespBody) {
|
||||
func (o *AnswerApiV1SearchGet200Response) GetMsgOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Msg) {
|
||||
return nil, false
|
||||
}
|
||||
return o.HandlerRespBody, true
|
||||
return o.Msg, true
|
||||
}
|
||||
|
||||
// HasHandlerRespBody returns a boolean if a field has been set.
|
||||
func (o *AnswerApiV1SearchGet200Response) HasHandlerRespBody() bool {
|
||||
if o != nil && !IsNil(o.HandlerRespBody) {
|
||||
// HasMsg returns a boolean if a field has been set.
|
||||
func (o *AnswerApiV1SearchGet200Response) HasMsg() bool {
|
||||
if o != nil && !IsNil(o.Msg) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetHandlerRespBody gets a reference to the given HandlerRespBody and assigns it to the HandlerRespBody field.
|
||||
func (o *AnswerApiV1SearchGet200Response) SetHandlerRespBody(v HandlerRespBody) {
|
||||
o.HandlerRespBody = &v
|
||||
// SetMsg gets a reference to the given string and assigns it to the Msg field.
|
||||
func (o *AnswerApiV1SearchGet200Response) SetMsg(v string) {
|
||||
o.Msg = &v
|
||||
}
|
||||
|
||||
// GetReason returns the Reason field value if set, zero value otherwise.
|
||||
func (o *AnswerApiV1SearchGet200Response) GetReason() string {
|
||||
if o == nil || IsNil(o.Reason) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Reason
|
||||
}
|
||||
|
||||
// GetReasonOk returns a tuple with the Reason field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *AnswerApiV1SearchGet200Response) GetReasonOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Reason) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Reason, true
|
||||
}
|
||||
|
||||
// HasReason returns a boolean if a field has been set.
|
||||
func (o *AnswerApiV1SearchGet200Response) HasReason() bool {
|
||||
if o != nil && !IsNil(o.Reason) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetReason gets a reference to the given string and assigns it to the Reason field.
|
||||
func (o *AnswerApiV1SearchGet200Response) SetReason(v string) {
|
||||
o.Reason = &v
|
||||
}
|
||||
|
||||
func (o AnswerApiV1SearchGet200Response) MarshalJSON() ([]byte, error) {
|
||||
@@ -112,11 +181,17 @@ func (o AnswerApiV1SearchGet200Response) MarshalJSON() ([]byte, error) {
|
||||
|
||||
func (o AnswerApiV1SearchGet200Response) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.Code) {
|
||||
toSerialize["code"] = o.Code
|
||||
}
|
||||
if !IsNil(o.Data) {
|
||||
toSerialize["data"] = o.Data
|
||||
}
|
||||
if !IsNil(o.HandlerRespBody) {
|
||||
toSerialize["handler.RespBody"] = o.HandlerRespBody
|
||||
if !IsNil(o.Msg) {
|
||||
toSerialize["msg"] = o.Msg
|
||||
}
|
||||
if !IsNil(o.Reason) {
|
||||
toSerialize["reason"] = o.Reason
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user