first version
This commit is contained in:
978
model_schema_get_user_resp.go
Normal file
978
model_schema_get_user_resp.go
Normal file
@@ -0,0 +1,978 @@
|
||||
/*
|
||||
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 SchemaGetUserResp type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaGetUserResp{}
|
||||
|
||||
// SchemaGetUserResp struct for SchemaGetUserResp
|
||||
type SchemaGetUserResp 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
|
||||
Avatar *string `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"`
|
||||
}
|
||||
|
||||
// NewSchemaGetUserResp instantiates a new SchemaGetUserResp 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 NewSchemaGetUserResp() *SchemaGetUserResp {
|
||||
this := SchemaGetUserResp{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaGetUserRespWithDefaults instantiates a new SchemaGetUserResp 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 NewSchemaGetUserRespWithDefaults() *SchemaGetUserResp {
|
||||
this := SchemaGetUserResp{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetAccessToken returns the AccessToken field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetAccessToken(v string) {
|
||||
o.AccessToken = &v
|
||||
}
|
||||
|
||||
// GetAnswerCount returns the AnswerCount field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetAnswerCount(v int32) {
|
||||
o.AnswerCount = &v
|
||||
}
|
||||
|
||||
// GetAuthorityGroup returns the AuthorityGroup field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetAuthorityGroup(v int32) {
|
||||
o.AuthorityGroup = &v
|
||||
}
|
||||
|
||||
// GetAvatar returns the Avatar field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) GetAvatar() string {
|
||||
if o == nil || IsNil(o.Avatar) {
|
||||
var ret string
|
||||
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 *SchemaGetUserResp) GetAvatarOk() (*string, 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 *SchemaGetUserResp) HasAvatar() bool {
|
||||
if o != nil && !IsNil(o.Avatar) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetAvatar gets a reference to the given string and assigns it to the Avatar field.
|
||||
func (o *SchemaGetUserResp) SetAvatar(v string) {
|
||||
o.Avatar = &v
|
||||
}
|
||||
|
||||
// GetBio returns the Bio field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetBio(v string) {
|
||||
o.Bio = &v
|
||||
}
|
||||
|
||||
// GetBioHtml returns the BioHtml field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetBioHtml(v string) {
|
||||
o.BioHtml = &v
|
||||
}
|
||||
|
||||
// GetCreatedAt returns the CreatedAt field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetCreatedAt(v int32) {
|
||||
o.CreatedAt = &v
|
||||
}
|
||||
|
||||
// GetDisplayName returns the DisplayName field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetDisplayName(v string) {
|
||||
o.DisplayName = &v
|
||||
}
|
||||
|
||||
// GetEMail returns the EMail field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetEMail(v string) {
|
||||
o.EMail = &v
|
||||
}
|
||||
|
||||
// GetFollowCount returns the FollowCount field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetFollowCount(v int32) {
|
||||
o.FollowCount = &v
|
||||
}
|
||||
|
||||
// GetId returns the Id field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetId(v string) {
|
||||
o.Id = &v
|
||||
}
|
||||
|
||||
// GetIpInfo returns the IpInfo field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetIpInfo(v string) {
|
||||
o.IpInfo = &v
|
||||
}
|
||||
|
||||
// GetLanguage returns the Language field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetLanguage(v string) {
|
||||
o.Language = &v
|
||||
}
|
||||
|
||||
// GetLastLoginDate returns the LastLoginDate field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetLastLoginDate(v int32) {
|
||||
o.LastLoginDate = &v
|
||||
}
|
||||
|
||||
// GetLocation returns the Location field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetLocation(v string) {
|
||||
o.Location = &v
|
||||
}
|
||||
|
||||
// GetMailStatus returns the MailStatus field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetMailStatus(v int32) {
|
||||
o.MailStatus = &v
|
||||
}
|
||||
|
||||
// GetMobile returns the Mobile field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetMobile(v string) {
|
||||
o.Mobile = &v
|
||||
}
|
||||
|
||||
// GetNoticeStatus returns the NoticeStatus field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetNoticeStatus(v int32) {
|
||||
o.NoticeStatus = &v
|
||||
}
|
||||
|
||||
// GetQuestionCount returns the QuestionCount field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetQuestionCount(v int32) {
|
||||
o.QuestionCount = &v
|
||||
}
|
||||
|
||||
// GetRank returns the Rank field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetRank(v int32) {
|
||||
o.Rank = &v
|
||||
}
|
||||
|
||||
// GetRoleId returns the RoleId field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetRoleId(v int32) {
|
||||
o.RoleId = &v
|
||||
}
|
||||
|
||||
// GetStatus returns the Status field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetStatus(v string) {
|
||||
o.Status = &v
|
||||
}
|
||||
|
||||
// GetUsername returns the Username field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetUsername(v string) {
|
||||
o.Username = &v
|
||||
}
|
||||
|
||||
// GetWebsite returns the Website field value if set, zero value otherwise.
|
||||
func (o *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) 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 *SchemaGetUserResp) SetWebsite(v string) {
|
||||
o.Website = &v
|
||||
}
|
||||
|
||||
func (o SchemaGetUserResp) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaGetUserResp) 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 NullableSchemaGetUserResp struct {
|
||||
value *SchemaGetUserResp
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaGetUserResp) Get() *SchemaGetUserResp {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaGetUserResp) Set(val *SchemaGetUserResp) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaGetUserResp) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaGetUserResp) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaGetUserResp(val *SchemaGetUserResp) *NullableSchemaGetUserResp {
|
||||
return &NullableSchemaGetUserResp{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaGetUserResp) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaGetUserResp) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user