236 lines
6.9 KiB
Go
236 lines
6.9 KiB
Go
/*
|
|
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
|
|
API version: 1.0.0
|
|
*/
|
|
|
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
|
|
|
package answer_sdk
|
|
|
|
import (
|
|
"encoding/json"
|
|
)
|
|
|
|
// checks if the AnswerAdminApiSiteinfoWriteGet200Response type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &AnswerAdminApiSiteinfoWriteGet200Response{}
|
|
|
|
// AnswerAdminApiSiteinfoWriteGet200Response struct for AnswerAdminApiSiteinfoWriteGet200Response
|
|
type AnswerAdminApiSiteinfoWriteGet200Response struct {
|
|
// http code
|
|
Code *int32 `json:"code,omitempty"`
|
|
Data *SchemaSiteWriteResp `json:"data,omitempty"`
|
|
// response message
|
|
Msg *string `json:"msg,omitempty"`
|
|
// reason key
|
|
Reason *string `json:"reason,omitempty"`
|
|
}
|
|
|
|
// NewAnswerAdminApiSiteinfoWriteGet200Response instantiates a new AnswerAdminApiSiteinfoWriteGet200Response object
|
|
// This constructor will assign default values to properties that have it defined,
|
|
// and makes sure properties required by API are set, but the set of arguments
|
|
// will change when the set of required properties is changed
|
|
func NewAnswerAdminApiSiteinfoWriteGet200Response() *AnswerAdminApiSiteinfoWriteGet200Response {
|
|
this := AnswerAdminApiSiteinfoWriteGet200Response{}
|
|
return &this
|
|
}
|
|
|
|
// NewAnswerAdminApiSiteinfoWriteGet200ResponseWithDefaults instantiates a new AnswerAdminApiSiteinfoWriteGet200Response object
|
|
// This constructor will only assign default values to properties that have it defined,
|
|
// but it doesn't guarantee that properties required by API are set
|
|
func NewAnswerAdminApiSiteinfoWriteGet200ResponseWithDefaults() *AnswerAdminApiSiteinfoWriteGet200Response {
|
|
this := AnswerAdminApiSiteinfoWriteGet200Response{}
|
|
return &this
|
|
}
|
|
|
|
// GetCode returns the Code field value if set, zero value otherwise.
|
|
func (o *AnswerAdminApiSiteinfoWriteGet200Response) 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 *AnswerAdminApiSiteinfoWriteGet200Response) 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 *AnswerAdminApiSiteinfoWriteGet200Response) 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 *AnswerAdminApiSiteinfoWriteGet200Response) SetCode(v int32) {
|
|
o.Code = &v
|
|
}
|
|
|
|
// GetData returns the Data field value if set, zero value otherwise.
|
|
func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetData() SchemaSiteWriteResp {
|
|
if o == nil || IsNil(o.Data) {
|
|
var ret SchemaSiteWriteResp
|
|
return ret
|
|
}
|
|
return *o.Data
|
|
}
|
|
|
|
// 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 *AnswerAdminApiSiteinfoWriteGet200Response) GetDataOk() (*SchemaSiteWriteResp, bool) {
|
|
if o == nil || IsNil(o.Data) {
|
|
return nil, false
|
|
}
|
|
return o.Data, true
|
|
}
|
|
|
|
// HasData returns a boolean if a field has been set.
|
|
func (o *AnswerAdminApiSiteinfoWriteGet200Response) HasData() bool {
|
|
if o != nil && !IsNil(o.Data) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetData gets a reference to the given SchemaSiteWriteResp and assigns it to the Data field.
|
|
func (o *AnswerAdminApiSiteinfoWriteGet200Response) SetData(v SchemaSiteWriteResp) {
|
|
o.Data = &v
|
|
}
|
|
|
|
// GetMsg returns the Msg field value if set, zero value otherwise.
|
|
func (o *AnswerAdminApiSiteinfoWriteGet200Response) GetMsg() string {
|
|
if o == nil || IsNil(o.Msg) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Msg
|
|
}
|
|
|
|
// 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 *AnswerAdminApiSiteinfoWriteGet200Response) GetMsgOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Msg) {
|
|
return nil, false
|
|
}
|
|
return o.Msg, true
|
|
}
|
|
|
|
// HasMsg returns a boolean if a field has been set.
|
|
func (o *AnswerAdminApiSiteinfoWriteGet200Response) HasMsg() bool {
|
|
if o != nil && !IsNil(o.Msg) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMsg gets a reference to the given string and assigns it to the Msg field.
|
|
func (o *AnswerAdminApiSiteinfoWriteGet200Response) SetMsg(v string) {
|
|
o.Msg = &v
|
|
}
|
|
|
|
// GetReason returns the Reason field value if set, zero value otherwise.
|
|
func (o *AnswerAdminApiSiteinfoWriteGet200Response) 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 *AnswerAdminApiSiteinfoWriteGet200Response) 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 *AnswerAdminApiSiteinfoWriteGet200Response) 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 *AnswerAdminApiSiteinfoWriteGet200Response) SetReason(v string) {
|
|
o.Reason = &v
|
|
}
|
|
|
|
func (o AnswerAdminApiSiteinfoWriteGet200Response) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o AnswerAdminApiSiteinfoWriteGet200Response) 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.Msg) {
|
|
toSerialize["msg"] = o.Msg
|
|
}
|
|
if !IsNil(o.Reason) {
|
|
toSerialize["reason"] = o.Reason
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableAnswerAdminApiSiteinfoWriteGet200Response struct {
|
|
value *AnswerAdminApiSiteinfoWriteGet200Response
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableAnswerAdminApiSiteinfoWriteGet200Response) Get() *AnswerAdminApiSiteinfoWriteGet200Response {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableAnswerAdminApiSiteinfoWriteGet200Response) Set(val *AnswerAdminApiSiteinfoWriteGet200Response) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableAnswerAdminApiSiteinfoWriteGet200Response) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableAnswerAdminApiSiteinfoWriteGet200Response) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableAnswerAdminApiSiteinfoWriteGet200Response(val *AnswerAdminApiSiteinfoWriteGet200Response) *NullableAnswerAdminApiSiteinfoWriteGet200Response {
|
|
return &NullableAnswerAdminApiSiteinfoWriteGet200Response{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableAnswerAdminApiSiteinfoWriteGet200Response) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableAnswerAdminApiSiteinfoWriteGet200Response) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|