978 lines
26 KiB
Go
978 lines
26 KiB
Go
/*
|
|
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 SchemaGetUserToSetShowResp type satisfies the MappedNullable interface at compile time
|
|
var _ MappedNullable = &SchemaGetUserToSetShowResp{}
|
|
|
|
// SchemaGetUserToSetShowResp struct for SchemaGetUserToSetShowResp
|
|
type SchemaGetUserToSetShowResp struct {
|
|
// access token
|
|
AccessToken *string `json:"access_token,omitempty"`
|
|
// answer count
|
|
AnswerCount *int32 `json:"answer_count,omitempty"`
|
|
// authority group
|
|
AuthorityGroup *int32 `json:"authority_group,omitempty"`
|
|
Avatar *SchemaAvatarInfo `json:"avatar,omitempty"`
|
|
// bio markdown
|
|
Bio *string `json:"bio,omitempty"`
|
|
// bio html
|
|
BioHtml *string `json:"bio_html,omitempty"`
|
|
// create time
|
|
CreatedAt *int32 `json:"created_at,omitempty"`
|
|
// display name
|
|
DisplayName *string `json:"display_name,omitempty"`
|
|
// email
|
|
EMail *string `json:"e_mail,omitempty"`
|
|
// follow count
|
|
FollowCount *int32 `json:"follow_count,omitempty"`
|
|
// user id
|
|
Id *string `json:"id,omitempty"`
|
|
// ip info
|
|
IpInfo *string `json:"ip_info,omitempty"`
|
|
// language
|
|
Language *string `json:"language,omitempty"`
|
|
// last login date
|
|
LastLoginDate *int32 `json:"last_login_date,omitempty"`
|
|
// location
|
|
Location *string `json:"location,omitempty"`
|
|
// mail status(1 pass 2 to be verified)
|
|
MailStatus *int32 `json:"mail_status,omitempty"`
|
|
// mobile
|
|
Mobile *string `json:"mobile,omitempty"`
|
|
// notice status(1 on 2off)
|
|
NoticeStatus *int32 `json:"notice_status,omitempty"`
|
|
// question count
|
|
QuestionCount *int32 `json:"question_count,omitempty"`
|
|
// rank
|
|
Rank *int32 `json:"rank,omitempty"`
|
|
// role id
|
|
RoleId *int32 `json:"role_id,omitempty"`
|
|
// user status
|
|
Status *string `json:"status,omitempty"`
|
|
// username
|
|
Username *string `json:"username,omitempty"`
|
|
// website
|
|
Website *string `json:"website,omitempty"`
|
|
}
|
|
|
|
// NewSchemaGetUserToSetShowResp instantiates a new SchemaGetUserToSetShowResp 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 NewSchemaGetUserToSetShowResp() *SchemaGetUserToSetShowResp {
|
|
this := SchemaGetUserToSetShowResp{}
|
|
return &this
|
|
}
|
|
|
|
// NewSchemaGetUserToSetShowRespWithDefaults instantiates a new SchemaGetUserToSetShowResp 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 NewSchemaGetUserToSetShowRespWithDefaults() *SchemaGetUserToSetShowResp {
|
|
this := SchemaGetUserToSetShowResp{}
|
|
return &this
|
|
}
|
|
|
|
// GetAccessToken returns the AccessToken field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetAccessToken() string {
|
|
if o == nil || IsNil(o.AccessToken) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.AccessToken
|
|
}
|
|
|
|
// GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetAccessTokenOk() (*string, bool) {
|
|
if o == nil || IsNil(o.AccessToken) {
|
|
return nil, false
|
|
}
|
|
return o.AccessToken, true
|
|
}
|
|
|
|
// HasAccessToken returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasAccessToken() bool {
|
|
if o != nil && !IsNil(o.AccessToken) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAccessToken gets a reference to the given string and assigns it to the AccessToken field.
|
|
func (o *SchemaGetUserToSetShowResp) SetAccessToken(v string) {
|
|
o.AccessToken = &v
|
|
}
|
|
|
|
// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetAnswerCount() int32 {
|
|
if o == nil || IsNil(o.AnswerCount) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.AnswerCount
|
|
}
|
|
|
|
// GetAnswerCountOk returns a tuple with the AnswerCount field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetAnswerCountOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.AnswerCount) {
|
|
return nil, false
|
|
}
|
|
return o.AnswerCount, true
|
|
}
|
|
|
|
// HasAnswerCount returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasAnswerCount() bool {
|
|
if o != nil && !IsNil(o.AnswerCount) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAnswerCount gets a reference to the given int32 and assigns it to the AnswerCount field.
|
|
func (o *SchemaGetUserToSetShowResp) SetAnswerCount(v int32) {
|
|
o.AnswerCount = &v
|
|
}
|
|
|
|
// GetAuthorityGroup returns the AuthorityGroup field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetAuthorityGroup() int32 {
|
|
if o == nil || IsNil(o.AuthorityGroup) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.AuthorityGroup
|
|
}
|
|
|
|
// GetAuthorityGroupOk returns a tuple with the AuthorityGroup field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetAuthorityGroupOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.AuthorityGroup) {
|
|
return nil, false
|
|
}
|
|
return o.AuthorityGroup, true
|
|
}
|
|
|
|
// HasAuthorityGroup returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasAuthorityGroup() bool {
|
|
if o != nil && !IsNil(o.AuthorityGroup) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAuthorityGroup gets a reference to the given int32 and assigns it to the AuthorityGroup field.
|
|
func (o *SchemaGetUserToSetShowResp) SetAuthorityGroup(v int32) {
|
|
o.AuthorityGroup = &v
|
|
}
|
|
|
|
// GetAvatar returns the Avatar field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetAvatar() SchemaAvatarInfo {
|
|
if o == nil || IsNil(o.Avatar) {
|
|
var ret SchemaAvatarInfo
|
|
return ret
|
|
}
|
|
return *o.Avatar
|
|
}
|
|
|
|
// GetAvatarOk returns a tuple with the Avatar field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetAvatarOk() (*SchemaAvatarInfo, bool) {
|
|
if o == nil || IsNil(o.Avatar) {
|
|
return nil, false
|
|
}
|
|
return o.Avatar, true
|
|
}
|
|
|
|
// HasAvatar returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasAvatar() bool {
|
|
if o != nil && !IsNil(o.Avatar) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetAvatar gets a reference to the given SchemaAvatarInfo and assigns it to the Avatar field.
|
|
func (o *SchemaGetUserToSetShowResp) SetAvatar(v SchemaAvatarInfo) {
|
|
o.Avatar = &v
|
|
}
|
|
|
|
// GetBio returns the Bio field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetBio() string {
|
|
if o == nil || IsNil(o.Bio) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Bio
|
|
}
|
|
|
|
// GetBioOk returns a tuple with the Bio field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetBioOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Bio) {
|
|
return nil, false
|
|
}
|
|
return o.Bio, true
|
|
}
|
|
|
|
// HasBio returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasBio() bool {
|
|
if o != nil && !IsNil(o.Bio) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBio gets a reference to the given string and assigns it to the Bio field.
|
|
func (o *SchemaGetUserToSetShowResp) SetBio(v string) {
|
|
o.Bio = &v
|
|
}
|
|
|
|
// GetBioHtml returns the BioHtml field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetBioHtml() string {
|
|
if o == nil || IsNil(o.BioHtml) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.BioHtml
|
|
}
|
|
|
|
// GetBioHtmlOk returns a tuple with the BioHtml field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetBioHtmlOk() (*string, bool) {
|
|
if o == nil || IsNil(o.BioHtml) {
|
|
return nil, false
|
|
}
|
|
return o.BioHtml, true
|
|
}
|
|
|
|
// HasBioHtml returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasBioHtml() bool {
|
|
if o != nil && !IsNil(o.BioHtml) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetBioHtml gets a reference to the given string and assigns it to the BioHtml field.
|
|
func (o *SchemaGetUserToSetShowResp) SetBioHtml(v string) {
|
|
o.BioHtml = &v
|
|
}
|
|
|
|
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) 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 *SchemaGetUserToSetShowResp) 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 *SchemaGetUserToSetShowResp) 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 *SchemaGetUserToSetShowResp) SetCreatedAt(v int32) {
|
|
o.CreatedAt = &v
|
|
}
|
|
|
|
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetDisplayName() string {
|
|
if o == nil || IsNil(o.DisplayName) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.DisplayName
|
|
}
|
|
|
|
// GetDisplayNameOk returns a tuple with the DisplayName field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetDisplayNameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.DisplayName) {
|
|
return nil, false
|
|
}
|
|
return o.DisplayName, true
|
|
}
|
|
|
|
// HasDisplayName returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasDisplayName() bool {
|
|
if o != nil && !IsNil(o.DisplayName) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetDisplayName gets a reference to the given string and assigns it to the DisplayName field.
|
|
func (o *SchemaGetUserToSetShowResp) SetDisplayName(v string) {
|
|
o.DisplayName = &v
|
|
}
|
|
|
|
// GetEMail returns the EMail field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetEMail() string {
|
|
if o == nil || IsNil(o.EMail) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.EMail
|
|
}
|
|
|
|
// GetEMailOk returns a tuple with the EMail field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetEMailOk() (*string, bool) {
|
|
if o == nil || IsNil(o.EMail) {
|
|
return nil, false
|
|
}
|
|
return o.EMail, true
|
|
}
|
|
|
|
// HasEMail returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasEMail() bool {
|
|
if o != nil && !IsNil(o.EMail) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetEMail gets a reference to the given string and assigns it to the EMail field.
|
|
func (o *SchemaGetUserToSetShowResp) SetEMail(v string) {
|
|
o.EMail = &v
|
|
}
|
|
|
|
// GetFollowCount returns the FollowCount field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetFollowCount() int32 {
|
|
if o == nil || IsNil(o.FollowCount) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.FollowCount
|
|
}
|
|
|
|
// GetFollowCountOk returns a tuple with the FollowCount field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetFollowCountOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.FollowCount) {
|
|
return nil, false
|
|
}
|
|
return o.FollowCount, true
|
|
}
|
|
|
|
// HasFollowCount returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasFollowCount() bool {
|
|
if o != nil && !IsNil(o.FollowCount) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetFollowCount gets a reference to the given int32 and assigns it to the FollowCount field.
|
|
func (o *SchemaGetUserToSetShowResp) SetFollowCount(v int32) {
|
|
o.FollowCount = &v
|
|
}
|
|
|
|
// GetId returns the Id field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetId() string {
|
|
if o == nil || IsNil(o.Id) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Id
|
|
}
|
|
|
|
// GetIdOk returns a tuple with the Id field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetIdOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Id) {
|
|
return nil, false
|
|
}
|
|
return o.Id, true
|
|
}
|
|
|
|
// HasId returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasId() bool {
|
|
if o != nil && !IsNil(o.Id) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetId gets a reference to the given string and assigns it to the Id field.
|
|
func (o *SchemaGetUserToSetShowResp) SetId(v string) {
|
|
o.Id = &v
|
|
}
|
|
|
|
// GetIpInfo returns the IpInfo field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetIpInfo() string {
|
|
if o == nil || IsNil(o.IpInfo) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.IpInfo
|
|
}
|
|
|
|
// GetIpInfoOk returns a tuple with the IpInfo field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetIpInfoOk() (*string, bool) {
|
|
if o == nil || IsNil(o.IpInfo) {
|
|
return nil, false
|
|
}
|
|
return o.IpInfo, true
|
|
}
|
|
|
|
// HasIpInfo returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasIpInfo() bool {
|
|
if o != nil && !IsNil(o.IpInfo) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetIpInfo gets a reference to the given string and assigns it to the IpInfo field.
|
|
func (o *SchemaGetUserToSetShowResp) SetIpInfo(v string) {
|
|
o.IpInfo = &v
|
|
}
|
|
|
|
// GetLanguage returns the Language field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetLanguage() string {
|
|
if o == nil || IsNil(o.Language) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Language
|
|
}
|
|
|
|
// GetLanguageOk returns a tuple with the Language field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetLanguageOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Language) {
|
|
return nil, false
|
|
}
|
|
return o.Language, true
|
|
}
|
|
|
|
// HasLanguage returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasLanguage() bool {
|
|
if o != nil && !IsNil(o.Language) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLanguage gets a reference to the given string and assigns it to the Language field.
|
|
func (o *SchemaGetUserToSetShowResp) SetLanguage(v string) {
|
|
o.Language = &v
|
|
}
|
|
|
|
// GetLastLoginDate returns the LastLoginDate field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetLastLoginDate() int32 {
|
|
if o == nil || IsNil(o.LastLoginDate) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.LastLoginDate
|
|
}
|
|
|
|
// GetLastLoginDateOk returns a tuple with the LastLoginDate field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetLastLoginDateOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.LastLoginDate) {
|
|
return nil, false
|
|
}
|
|
return o.LastLoginDate, true
|
|
}
|
|
|
|
// HasLastLoginDate returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasLastLoginDate() bool {
|
|
if o != nil && !IsNil(o.LastLoginDate) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLastLoginDate gets a reference to the given int32 and assigns it to the LastLoginDate field.
|
|
func (o *SchemaGetUserToSetShowResp) SetLastLoginDate(v int32) {
|
|
o.LastLoginDate = &v
|
|
}
|
|
|
|
// GetLocation returns the Location field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetLocation() string {
|
|
if o == nil || IsNil(o.Location) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Location
|
|
}
|
|
|
|
// GetLocationOk returns a tuple with the Location field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetLocationOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Location) {
|
|
return nil, false
|
|
}
|
|
return o.Location, true
|
|
}
|
|
|
|
// HasLocation returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasLocation() bool {
|
|
if o != nil && !IsNil(o.Location) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetLocation gets a reference to the given string and assigns it to the Location field.
|
|
func (o *SchemaGetUserToSetShowResp) SetLocation(v string) {
|
|
o.Location = &v
|
|
}
|
|
|
|
// GetMailStatus returns the MailStatus field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetMailStatus() int32 {
|
|
if o == nil || IsNil(o.MailStatus) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.MailStatus
|
|
}
|
|
|
|
// GetMailStatusOk returns a tuple with the MailStatus field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetMailStatusOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.MailStatus) {
|
|
return nil, false
|
|
}
|
|
return o.MailStatus, true
|
|
}
|
|
|
|
// HasMailStatus returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasMailStatus() bool {
|
|
if o != nil && !IsNil(o.MailStatus) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMailStatus gets a reference to the given int32 and assigns it to the MailStatus field.
|
|
func (o *SchemaGetUserToSetShowResp) SetMailStatus(v int32) {
|
|
o.MailStatus = &v
|
|
}
|
|
|
|
// GetMobile returns the Mobile field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetMobile() string {
|
|
if o == nil || IsNil(o.Mobile) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Mobile
|
|
}
|
|
|
|
// GetMobileOk returns a tuple with the Mobile field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetMobileOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Mobile) {
|
|
return nil, false
|
|
}
|
|
return o.Mobile, true
|
|
}
|
|
|
|
// HasMobile returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasMobile() bool {
|
|
if o != nil && !IsNil(o.Mobile) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetMobile gets a reference to the given string and assigns it to the Mobile field.
|
|
func (o *SchemaGetUserToSetShowResp) SetMobile(v string) {
|
|
o.Mobile = &v
|
|
}
|
|
|
|
// GetNoticeStatus returns the NoticeStatus field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetNoticeStatus() int32 {
|
|
if o == nil || IsNil(o.NoticeStatus) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.NoticeStatus
|
|
}
|
|
|
|
// GetNoticeStatusOk returns a tuple with the NoticeStatus field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetNoticeStatusOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.NoticeStatus) {
|
|
return nil, false
|
|
}
|
|
return o.NoticeStatus, true
|
|
}
|
|
|
|
// HasNoticeStatus returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasNoticeStatus() bool {
|
|
if o != nil && !IsNil(o.NoticeStatus) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetNoticeStatus gets a reference to the given int32 and assigns it to the NoticeStatus field.
|
|
func (o *SchemaGetUserToSetShowResp) SetNoticeStatus(v int32) {
|
|
o.NoticeStatus = &v
|
|
}
|
|
|
|
// GetQuestionCount returns the QuestionCount field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetQuestionCount() int32 {
|
|
if o == nil || IsNil(o.QuestionCount) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.QuestionCount
|
|
}
|
|
|
|
// GetQuestionCountOk returns a tuple with the QuestionCount field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetQuestionCountOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.QuestionCount) {
|
|
return nil, false
|
|
}
|
|
return o.QuestionCount, true
|
|
}
|
|
|
|
// HasQuestionCount returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasQuestionCount() bool {
|
|
if o != nil && !IsNil(o.QuestionCount) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetQuestionCount gets a reference to the given int32 and assigns it to the QuestionCount field.
|
|
func (o *SchemaGetUserToSetShowResp) SetQuestionCount(v int32) {
|
|
o.QuestionCount = &v
|
|
}
|
|
|
|
// GetRank returns the Rank field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetRank() int32 {
|
|
if o == nil || IsNil(o.Rank) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.Rank
|
|
}
|
|
|
|
// GetRankOk returns a tuple with the Rank field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetRankOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.Rank) {
|
|
return nil, false
|
|
}
|
|
return o.Rank, true
|
|
}
|
|
|
|
// HasRank returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasRank() bool {
|
|
if o != nil && !IsNil(o.Rank) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRank gets a reference to the given int32 and assigns it to the Rank field.
|
|
func (o *SchemaGetUserToSetShowResp) SetRank(v int32) {
|
|
o.Rank = &v
|
|
}
|
|
|
|
// GetRoleId returns the RoleId field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetRoleId() int32 {
|
|
if o == nil || IsNil(o.RoleId) {
|
|
var ret int32
|
|
return ret
|
|
}
|
|
return *o.RoleId
|
|
}
|
|
|
|
// GetRoleIdOk returns a tuple with the RoleId field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetRoleIdOk() (*int32, bool) {
|
|
if o == nil || IsNil(o.RoleId) {
|
|
return nil, false
|
|
}
|
|
return o.RoleId, true
|
|
}
|
|
|
|
// HasRoleId returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasRoleId() bool {
|
|
if o != nil && !IsNil(o.RoleId) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetRoleId gets a reference to the given int32 and assigns it to the RoleId field.
|
|
func (o *SchemaGetUserToSetShowResp) SetRoleId(v int32) {
|
|
o.RoleId = &v
|
|
}
|
|
|
|
// GetStatus returns the Status field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetStatus() string {
|
|
if o == nil || IsNil(o.Status) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Status
|
|
}
|
|
|
|
// GetStatusOk returns a tuple with the Status field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetStatusOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Status) {
|
|
return nil, false
|
|
}
|
|
return o.Status, true
|
|
}
|
|
|
|
// HasStatus returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasStatus() bool {
|
|
if o != nil && !IsNil(o.Status) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetStatus gets a reference to the given string and assigns it to the Status field.
|
|
func (o *SchemaGetUserToSetShowResp) SetStatus(v string) {
|
|
o.Status = &v
|
|
}
|
|
|
|
// GetUsername returns the Username field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetUsername() string {
|
|
if o == nil || IsNil(o.Username) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Username
|
|
}
|
|
|
|
// GetUsernameOk returns a tuple with the Username field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetUsernameOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Username) {
|
|
return nil, false
|
|
}
|
|
return o.Username, true
|
|
}
|
|
|
|
// HasUsername returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasUsername() bool {
|
|
if o != nil && !IsNil(o.Username) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetUsername gets a reference to the given string and assigns it to the Username field.
|
|
func (o *SchemaGetUserToSetShowResp) SetUsername(v string) {
|
|
o.Username = &v
|
|
}
|
|
|
|
// GetWebsite returns the Website field value if set, zero value otherwise.
|
|
func (o *SchemaGetUserToSetShowResp) GetWebsite() string {
|
|
if o == nil || IsNil(o.Website) {
|
|
var ret string
|
|
return ret
|
|
}
|
|
return *o.Website
|
|
}
|
|
|
|
// GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise
|
|
// and a boolean to check if the value has been set.
|
|
func (o *SchemaGetUserToSetShowResp) GetWebsiteOk() (*string, bool) {
|
|
if o == nil || IsNil(o.Website) {
|
|
return nil, false
|
|
}
|
|
return o.Website, true
|
|
}
|
|
|
|
// HasWebsite returns a boolean if a field has been set.
|
|
func (o *SchemaGetUserToSetShowResp) HasWebsite() bool {
|
|
if o != nil && !IsNil(o.Website) {
|
|
return true
|
|
}
|
|
|
|
return false
|
|
}
|
|
|
|
// SetWebsite gets a reference to the given string and assigns it to the Website field.
|
|
func (o *SchemaGetUserToSetShowResp) SetWebsite(v string) {
|
|
o.Website = &v
|
|
}
|
|
|
|
func (o SchemaGetUserToSetShowResp) MarshalJSON() ([]byte, error) {
|
|
toSerialize,err := o.ToMap()
|
|
if err != nil {
|
|
return []byte{}, err
|
|
}
|
|
return json.Marshal(toSerialize)
|
|
}
|
|
|
|
func (o SchemaGetUserToSetShowResp) ToMap() (map[string]interface{}, error) {
|
|
toSerialize := map[string]interface{}{}
|
|
if !IsNil(o.AccessToken) {
|
|
toSerialize["access_token"] = o.AccessToken
|
|
}
|
|
if !IsNil(o.AnswerCount) {
|
|
toSerialize["answer_count"] = o.AnswerCount
|
|
}
|
|
if !IsNil(o.AuthorityGroup) {
|
|
toSerialize["authority_group"] = o.AuthorityGroup
|
|
}
|
|
if !IsNil(o.Avatar) {
|
|
toSerialize["avatar"] = o.Avatar
|
|
}
|
|
if !IsNil(o.Bio) {
|
|
toSerialize["bio"] = o.Bio
|
|
}
|
|
if !IsNil(o.BioHtml) {
|
|
toSerialize["bio_html"] = o.BioHtml
|
|
}
|
|
if !IsNil(o.CreatedAt) {
|
|
toSerialize["created_at"] = o.CreatedAt
|
|
}
|
|
if !IsNil(o.DisplayName) {
|
|
toSerialize["display_name"] = o.DisplayName
|
|
}
|
|
if !IsNil(o.EMail) {
|
|
toSerialize["e_mail"] = o.EMail
|
|
}
|
|
if !IsNil(o.FollowCount) {
|
|
toSerialize["follow_count"] = o.FollowCount
|
|
}
|
|
if !IsNil(o.Id) {
|
|
toSerialize["id"] = o.Id
|
|
}
|
|
if !IsNil(o.IpInfo) {
|
|
toSerialize["ip_info"] = o.IpInfo
|
|
}
|
|
if !IsNil(o.Language) {
|
|
toSerialize["language"] = o.Language
|
|
}
|
|
if !IsNil(o.LastLoginDate) {
|
|
toSerialize["last_login_date"] = o.LastLoginDate
|
|
}
|
|
if !IsNil(o.Location) {
|
|
toSerialize["location"] = o.Location
|
|
}
|
|
if !IsNil(o.MailStatus) {
|
|
toSerialize["mail_status"] = o.MailStatus
|
|
}
|
|
if !IsNil(o.Mobile) {
|
|
toSerialize["mobile"] = o.Mobile
|
|
}
|
|
if !IsNil(o.NoticeStatus) {
|
|
toSerialize["notice_status"] = o.NoticeStatus
|
|
}
|
|
if !IsNil(o.QuestionCount) {
|
|
toSerialize["question_count"] = o.QuestionCount
|
|
}
|
|
if !IsNil(o.Rank) {
|
|
toSerialize["rank"] = o.Rank
|
|
}
|
|
if !IsNil(o.RoleId) {
|
|
toSerialize["role_id"] = o.RoleId
|
|
}
|
|
if !IsNil(o.Status) {
|
|
toSerialize["status"] = o.Status
|
|
}
|
|
if !IsNil(o.Username) {
|
|
toSerialize["username"] = o.Username
|
|
}
|
|
if !IsNil(o.Website) {
|
|
toSerialize["website"] = o.Website
|
|
}
|
|
return toSerialize, nil
|
|
}
|
|
|
|
type NullableSchemaGetUserToSetShowResp struct {
|
|
value *SchemaGetUserToSetShowResp
|
|
isSet bool
|
|
}
|
|
|
|
func (v NullableSchemaGetUserToSetShowResp) Get() *SchemaGetUserToSetShowResp {
|
|
return v.value
|
|
}
|
|
|
|
func (v *NullableSchemaGetUserToSetShowResp) Set(val *SchemaGetUserToSetShowResp) {
|
|
v.value = val
|
|
v.isSet = true
|
|
}
|
|
|
|
func (v NullableSchemaGetUserToSetShowResp) IsSet() bool {
|
|
return v.isSet
|
|
}
|
|
|
|
func (v *NullableSchemaGetUserToSetShowResp) Unset() {
|
|
v.value = nil
|
|
v.isSet = false
|
|
}
|
|
|
|
func NewNullableSchemaGetUserToSetShowResp(val *SchemaGetUserToSetShowResp) *NullableSchemaGetUserToSetShowResp {
|
|
return &NullableSchemaGetUserToSetShowResp{value: val, isSet: true}
|
|
}
|
|
|
|
func (v NullableSchemaGetUserToSetShowResp) MarshalJSON() ([]byte, error) {
|
|
return json.Marshal(v.value)
|
|
}
|
|
|
|
func (v *NullableSchemaGetUserToSetShowResp) UnmarshalJSON(src []byte) error {
|
|
v.isSet = true
|
|
return json.Unmarshal(src, &v.value)
|
|
}
|
|
|
|
|