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