first version
This commit is contained in:
423
model_schema_get_comment_personal_with_page_resp.go
Normal file
423
model_schema_get_comment_personal_with_page_resp.go
Normal file
@@ -0,0 +1,423 @@
|
||||
/*
|
||||
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 SchemaGetCommentPersonalWithPageResp type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaGetCommentPersonalWithPageResp{}
|
||||
|
||||
// SchemaGetCommentPersonalWithPageResp struct for SchemaGetCommentPersonalWithPageResp
|
||||
type SchemaGetCommentPersonalWithPageResp struct {
|
||||
// answer id
|
||||
AnswerId *string `json:"answer_id,omitempty"`
|
||||
// comment id
|
||||
CommentId *string `json:"comment_id,omitempty"`
|
||||
// content
|
||||
Content *string `json:"content,omitempty"`
|
||||
// create time
|
||||
CreatedAt *int32 `json:"created_at,omitempty"`
|
||||
// object id
|
||||
ObjectId *string `json:"object_id,omitempty"`
|
||||
// object type
|
||||
ObjectType *string `json:"object_type,omitempty"`
|
||||
// question id
|
||||
QuestionId *string `json:"question_id,omitempty"`
|
||||
// title
|
||||
Title *string `json:"title,omitempty"`
|
||||
// url title
|
||||
UrlTitle *string `json:"url_title,omitempty"`
|
||||
}
|
||||
|
||||
// NewSchemaGetCommentPersonalWithPageResp instantiates a new SchemaGetCommentPersonalWithPageResp 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 NewSchemaGetCommentPersonalWithPageResp() *SchemaGetCommentPersonalWithPageResp {
|
||||
this := SchemaGetCommentPersonalWithPageResp{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaGetCommentPersonalWithPageRespWithDefaults instantiates a new SchemaGetCommentPersonalWithPageResp 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 NewSchemaGetCommentPersonalWithPageRespWithDefaults() *SchemaGetCommentPersonalWithPageResp {
|
||||
this := SchemaGetCommentPersonalWithPageResp{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAnswerId returns the AnswerId field value if set, zero value otherwise.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetAnswerId() string {
|
||||
if o == nil || IsNil(o.AnswerId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.AnswerId
|
||||
}
|
||||
|
||||
// GetAnswerIdOk returns a tuple with the AnswerId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetAnswerIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.AnswerId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.AnswerId, true
|
||||
}
|
||||
|
||||
// HasAnswerId returns a boolean if a field has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) HasAnswerId() bool {
|
||||
if o != nil && !IsNil(o.AnswerId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAnswerId gets a reference to the given string and assigns it to the AnswerId field.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) SetAnswerId(v string) {
|
||||
o.AnswerId = &v
|
||||
}
|
||||
|
||||
// GetCommentId returns the CommentId field value if set, zero value otherwise.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetCommentId() string {
|
||||
if o == nil || IsNil(o.CommentId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.CommentId
|
||||
}
|
||||
|
||||
// GetCommentIdOk returns a tuple with the CommentId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetCommentIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.CommentId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CommentId, true
|
||||
}
|
||||
|
||||
// HasCommentId returns a boolean if a field has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) HasCommentId() bool {
|
||||
if o != nil && !IsNil(o.CommentId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCommentId gets a reference to the given string and assigns it to the CommentId field.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) SetCommentId(v string) {
|
||||
o.CommentId = &v
|
||||
}
|
||||
|
||||
// GetContent returns the Content field value if set, zero value otherwise.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetContent() string {
|
||||
if o == nil || IsNil(o.Content) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Content
|
||||
}
|
||||
|
||||
// GetContentOk returns a tuple with the Content field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetContentOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Content) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Content, true
|
||||
}
|
||||
|
||||
// HasContent returns a boolean if a field has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) HasContent() bool {
|
||||
if o != nil && !IsNil(o.Content) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetContent gets a reference to the given string and assigns it to the Content field.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) SetContent(v string) {
|
||||
o.Content = &v
|
||||
}
|
||||
|
||||
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetCreatedAt() int32 {
|
||||
if o == nil || IsNil(o.CreatedAt) {
|
||||
var ret int32
|
||||
return ret
|
||||
}
|
||||
return *o.CreatedAt
|
||||
}
|
||||
|
||||
// GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetCreatedAtOk() (*int32, bool) {
|
||||
if o == nil || IsNil(o.CreatedAt) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CreatedAt, true
|
||||
}
|
||||
|
||||
// HasCreatedAt returns a boolean if a field has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) HasCreatedAt() bool {
|
||||
if o != nil && !IsNil(o.CreatedAt) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCreatedAt gets a reference to the given int32 and assigns it to the CreatedAt field.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) SetCreatedAt(v int32) {
|
||||
o.CreatedAt = &v
|
||||
}
|
||||
|
||||
// GetObjectId returns the ObjectId field value if set, zero value otherwise.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetObjectId() string {
|
||||
if o == nil || IsNil(o.ObjectId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.ObjectId
|
||||
}
|
||||
|
||||
// GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetObjectIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.ObjectId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.ObjectId, true
|
||||
}
|
||||
|
||||
// HasObjectId returns a boolean if a field has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) HasObjectId() bool {
|
||||
if o != nil && !IsNil(o.ObjectId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetObjectId gets a reference to the given string and assigns it to the ObjectId field.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) SetObjectId(v string) {
|
||||
o.ObjectId = &v
|
||||
}
|
||||
|
||||
// GetObjectType returns the ObjectType field value if set, zero value otherwise.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetObjectType() string {
|
||||
if o == nil || IsNil(o.ObjectType) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.ObjectType
|
||||
}
|
||||
|
||||
// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetObjectTypeOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.ObjectType) {
|
||||
return nil, false
|
||||
}
|
||||
return o.ObjectType, true
|
||||
}
|
||||
|
||||
// HasObjectType returns a boolean if a field has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) HasObjectType() bool {
|
||||
if o != nil && !IsNil(o.ObjectType) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetObjectType gets a reference to the given string and assigns it to the ObjectType field.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) SetObjectType(v string) {
|
||||
o.ObjectType = &v
|
||||
}
|
||||
|
||||
// GetQuestionId returns the QuestionId field value if set, zero value otherwise.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetQuestionId() string {
|
||||
if o == nil || IsNil(o.QuestionId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.QuestionId
|
||||
}
|
||||
|
||||
// GetQuestionIdOk returns a tuple with the QuestionId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetQuestionIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.QuestionId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.QuestionId, true
|
||||
}
|
||||
|
||||
// HasQuestionId returns a boolean if a field has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) HasQuestionId() bool {
|
||||
if o != nil && !IsNil(o.QuestionId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetQuestionId gets a reference to the given string and assigns it to the QuestionId field.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) SetQuestionId(v string) {
|
||||
o.QuestionId = &v
|
||||
}
|
||||
|
||||
// GetTitle returns the Title field value if set, zero value otherwise.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetTitle() string {
|
||||
if o == nil || IsNil(o.Title) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.Title
|
||||
}
|
||||
|
||||
// GetTitleOk returns a tuple with the Title field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetTitleOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.Title) {
|
||||
return nil, false
|
||||
}
|
||||
return o.Title, true
|
||||
}
|
||||
|
||||
// HasTitle returns a boolean if a field has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) HasTitle() bool {
|
||||
if o != nil && !IsNil(o.Title) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetTitle gets a reference to the given string and assigns it to the Title field.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) SetTitle(v string) {
|
||||
o.Title = &v
|
||||
}
|
||||
|
||||
// GetUrlTitle returns the UrlTitle field value if set, zero value otherwise.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetUrlTitle() string {
|
||||
if o == nil || IsNil(o.UrlTitle) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.UrlTitle
|
||||
}
|
||||
|
||||
// GetUrlTitleOk returns a tuple with the UrlTitle field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) GetUrlTitleOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.UrlTitle) {
|
||||
return nil, false
|
||||
}
|
||||
return o.UrlTitle, true
|
||||
}
|
||||
|
||||
// HasUrlTitle returns a boolean if a field has been set.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) HasUrlTitle() bool {
|
||||
if o != nil && !IsNil(o.UrlTitle) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetUrlTitle gets a reference to the given string and assigns it to the UrlTitle field.
|
||||
func (o *SchemaGetCommentPersonalWithPageResp) SetUrlTitle(v string) {
|
||||
o.UrlTitle = &v
|
||||
}
|
||||
|
||||
func (o SchemaGetCommentPersonalWithPageResp) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaGetCommentPersonalWithPageResp) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.AnswerId) {
|
||||
toSerialize["answer_id"] = o.AnswerId
|
||||
}
|
||||
if !IsNil(o.CommentId) {
|
||||
toSerialize["comment_id"] = o.CommentId
|
||||
}
|
||||
if !IsNil(o.Content) {
|
||||
toSerialize["content"] = o.Content
|
||||
}
|
||||
if !IsNil(o.CreatedAt) {
|
||||
toSerialize["created_at"] = o.CreatedAt
|
||||
}
|
||||
if !IsNil(o.ObjectId) {
|
||||
toSerialize["object_id"] = o.ObjectId
|
||||
}
|
||||
if !IsNil(o.ObjectType) {
|
||||
toSerialize["object_type"] = o.ObjectType
|
||||
}
|
||||
if !IsNil(o.QuestionId) {
|
||||
toSerialize["question_id"] = o.QuestionId
|
||||
}
|
||||
if !IsNil(o.Title) {
|
||||
toSerialize["title"] = o.Title
|
||||
}
|
||||
if !IsNil(o.UrlTitle) {
|
||||
toSerialize["url_title"] = o.UrlTitle
|
||||
}
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableSchemaGetCommentPersonalWithPageResp struct {
|
||||
value *SchemaGetCommentPersonalWithPageResp
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaGetCommentPersonalWithPageResp) Get() *SchemaGetCommentPersonalWithPageResp {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaGetCommentPersonalWithPageResp) Set(val *SchemaGetCommentPersonalWithPageResp) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaGetCommentPersonalWithPageResp) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaGetCommentPersonalWithPageResp) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaGetCommentPersonalWithPageResp(val *SchemaGetCommentPersonalWithPageResp) *NullableSchemaGetCommentPersonalWithPageResp {
|
||||
return &NullableSchemaGetCommentPersonalWithPageResp{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaGetCommentPersonalWithPageResp) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaGetCommentPersonalWithPageResp) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user