更新文档内容

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"
@@ -17,8 +17,13 @@ var _ MappedNullable = &AnswerAdminApiRolesGet200Response{}
// AnswerAdminApiRolesGet200Response struct for AnswerAdminApiRolesGet200Response
type AnswerAdminApiRolesGet200Response struct {
// http code
Code *int32 `json:"code,omitempty"`
Data []SchemaGetRoleResp `json:"data,omitempty"`
HandlerRespBody *HandlerRespBody `json:"handler.RespBody,omitempty"`
// response message
Msg *string `json:"msg,omitempty"`
// reason key
Reason *string `json:"reason,omitempty"`
}
// NewAnswerAdminApiRolesGet200Response instantiates a new AnswerAdminApiRolesGet200Response object
@@ -38,6 +43,38 @@ func NewAnswerAdminApiRolesGet200ResponseWithDefaults() *AnswerAdminApiRolesGet2
return &this
}
// GetCode returns the Code field value if set, zero value otherwise.
func (o *AnswerAdminApiRolesGet200Response) 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 *AnswerAdminApiRolesGet200Response) 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 *AnswerAdminApiRolesGet200Response) 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 *AnswerAdminApiRolesGet200Response) SetCode(v int32) {
o.Code = &v
}
// GetData returns the Data field value if set, zero value otherwise.
func (o *AnswerAdminApiRolesGet200Response) GetData() []SchemaGetRoleResp {
if o == nil || IsNil(o.Data) {
@@ -70,36 +107,68 @@ func (o *AnswerAdminApiRolesGet200Response) SetData(v []SchemaGetRoleResp) {
o.Data = v
}
// GetHandlerRespBody returns the HandlerRespBody field value if set, zero value otherwise.
func (o *AnswerAdminApiRolesGet200Response) GetHandlerRespBody() HandlerRespBody {
if o == nil || IsNil(o.HandlerRespBody) {
var ret HandlerRespBody
// GetMsg returns the Msg field value if set, zero value otherwise.
func (o *AnswerAdminApiRolesGet200Response) 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 *AnswerAdminApiRolesGet200Response) GetHandlerRespBodyOk() (*HandlerRespBody, bool) {
if o == nil || IsNil(o.HandlerRespBody) {
func (o *AnswerAdminApiRolesGet200Response) 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 *AnswerAdminApiRolesGet200Response) HasHandlerRespBody() bool {
if o != nil && !IsNil(o.HandlerRespBody) {
// HasMsg returns a boolean if a field has been set.
func (o *AnswerAdminApiRolesGet200Response) 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 *AnswerAdminApiRolesGet200Response) SetHandlerRespBody(v HandlerRespBody) {
o.HandlerRespBody = &v
// SetMsg gets a reference to the given string and assigns it to the Msg field.
func (o *AnswerAdminApiRolesGet200Response) SetMsg(v string) {
o.Msg = &v
}
// GetReason returns the Reason field value if set, zero value otherwise.
func (o *AnswerAdminApiRolesGet200Response) 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 *AnswerAdminApiRolesGet200Response) 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 *AnswerAdminApiRolesGet200Response) 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 *AnswerAdminApiRolesGet200Response) SetReason(v string) {
o.Reason = &v
}
func (o AnswerAdminApiRolesGet200Response) MarshalJSON() ([]byte, error) {
@@ -112,11 +181,17 @@ func (o AnswerAdminApiRolesGet200Response) MarshalJSON() ([]byte, error) {
func (o AnswerAdminApiRolesGet200Response) 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
}