first version

This commit is contained in:
2023-08-18 10:03:31 +08:00
commit c3f06b456f
410 changed files with 94634 additions and 0 deletions

View File

@@ -0,0 +1,118 @@
/*
answer
answer api
API version: v0.0.1
*/
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
package openapi
import (
"encoding/json"
)
// checks if the SchemaRemoveAnswerReq type satisfies the MappedNullable interface at compile time
var _ MappedNullable = &SchemaRemoveAnswerReq{}
// SchemaRemoveAnswerReq struct for SchemaRemoveAnswerReq
type SchemaRemoveAnswerReq struct {
// answer id
Id string `json:"id"`
}
// NewSchemaRemoveAnswerReq instantiates a new SchemaRemoveAnswerReq 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 NewSchemaRemoveAnswerReq(id string) *SchemaRemoveAnswerReq {
this := SchemaRemoveAnswerReq{}
this.Id = id
return &this
}
// NewSchemaRemoveAnswerReqWithDefaults instantiates a new SchemaRemoveAnswerReq 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 NewSchemaRemoveAnswerReqWithDefaults() *SchemaRemoveAnswerReq {
this := SchemaRemoveAnswerReq{}
return &this
}
// GetId returns the Id field value
func (o *SchemaRemoveAnswerReq) GetId() string {
if o == nil {
var ret string
return ret
}
return o.Id
}
// GetIdOk returns a tuple with the Id field value
// and a boolean to check if the value has been set.
func (o *SchemaRemoveAnswerReq) GetIdOk() (*string, bool) {
if o == nil {
return nil, false
}
return &o.Id, true
}
// SetId sets field value
func (o *SchemaRemoveAnswerReq) SetId(v string) {
o.Id = v
}
func (o SchemaRemoveAnswerReq) MarshalJSON() ([]byte, error) {
toSerialize,err := o.ToMap()
if err != nil {
return []byte{}, err
}
return json.Marshal(toSerialize)
}
func (o SchemaRemoveAnswerReq) ToMap() (map[string]interface{}, error) {
toSerialize := map[string]interface{}{}
toSerialize["id"] = o.Id
return toSerialize, nil
}
type NullableSchemaRemoveAnswerReq struct {
value *SchemaRemoveAnswerReq
isSet bool
}
func (v NullableSchemaRemoveAnswerReq) Get() *SchemaRemoveAnswerReq {
return v.value
}
func (v *NullableSchemaRemoveAnswerReq) Set(val *SchemaRemoveAnswerReq) {
v.value = val
v.isSet = true
}
func (v NullableSchemaRemoveAnswerReq) IsSet() bool {
return v.isSet
}
func (v *NullableSchemaRemoveAnswerReq) Unset() {
v.value = nil
v.isSet = false
}
func NewNullableSchemaRemoveAnswerReq(val *SchemaRemoveAnswerReq) *NullableSchemaRemoveAnswerReq {
return &NullableSchemaRemoveAnswerReq{value: val, isSet: true}
}
func (v NullableSchemaRemoveAnswerReq) MarshalJSON() ([]byte, error) {
return json.Marshal(v.value)
}
func (v *NullableSchemaRemoveAnswerReq) UnmarshalJSON(src []byte) error {
v.isSet = true
return json.Unmarshal(src, &v.value)
}