first version
This commit is contained in:
118
model_schema_remove_comment_req.go
Normal file
118
model_schema_remove_comment_req.go
Normal 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 SchemaRemoveCommentReq type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaRemoveCommentReq{}
|
||||
|
||||
// SchemaRemoveCommentReq struct for SchemaRemoveCommentReq
|
||||
type SchemaRemoveCommentReq struct {
|
||||
// comment id
|
||||
CommentId string `json:"comment_id"`
|
||||
}
|
||||
|
||||
// NewSchemaRemoveCommentReq instantiates a new SchemaRemoveCommentReq 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 NewSchemaRemoveCommentReq(commentId string) *SchemaRemoveCommentReq {
|
||||
this := SchemaRemoveCommentReq{}
|
||||
this.CommentId = commentId
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaRemoveCommentReqWithDefaults instantiates a new SchemaRemoveCommentReq 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 NewSchemaRemoveCommentReqWithDefaults() *SchemaRemoveCommentReq {
|
||||
this := SchemaRemoveCommentReq{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCommentId returns the CommentId field value
|
||||
func (o *SchemaRemoveCommentReq) GetCommentId() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.CommentId
|
||||
}
|
||||
|
||||
// GetCommentIdOk returns a tuple with the CommentId field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaRemoveCommentReq) GetCommentIdOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.CommentId, true
|
||||
}
|
||||
|
||||
// SetCommentId sets field value
|
||||
func (o *SchemaRemoveCommentReq) SetCommentId(v string) {
|
||||
o.CommentId = v
|
||||
}
|
||||
|
||||
func (o SchemaRemoveCommentReq) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaRemoveCommentReq) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
toSerialize["comment_id"] = o.CommentId
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableSchemaRemoveCommentReq struct {
|
||||
value *SchemaRemoveCommentReq
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaRemoveCommentReq) Get() *SchemaRemoveCommentReq {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaRemoveCommentReq) Set(val *SchemaRemoveCommentReq) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaRemoveCommentReq) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaRemoveCommentReq) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaRemoveCommentReq(val *SchemaRemoveCommentReq) *NullableSchemaRemoveCommentReq {
|
||||
return &NullableSchemaRemoveCommentReq{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaRemoveCommentReq) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaRemoveCommentReq) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user