first version
This commit is contained in:
279
model_install_init_base_info_req.go
Normal file
279
model_install_init_base_info_req.go
Normal file
@@ -0,0 +1,279 @@
|
||||
/*
|
||||
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 InstallInitBaseInfoReq type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &InstallInitBaseInfoReq{}
|
||||
|
||||
// InstallInitBaseInfoReq struct for InstallInitBaseInfoReq
|
||||
type InstallInitBaseInfoReq struct {
|
||||
ContactEmail string `json:"contact_email"`
|
||||
Email string `json:"email"`
|
||||
Lang string `json:"lang"`
|
||||
Name string `json:"name"`
|
||||
Password string `json:"password"`
|
||||
SiteName string `json:"site_name"`
|
||||
SiteUrl string `json:"site_url"`
|
||||
}
|
||||
|
||||
// NewInstallInitBaseInfoReq instantiates a new InstallInitBaseInfoReq 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 NewInstallInitBaseInfoReq(contactEmail string, email string, lang string, name string, password string, siteName string, siteUrl string) *InstallInitBaseInfoReq {
|
||||
this := InstallInitBaseInfoReq{}
|
||||
this.ContactEmail = contactEmail
|
||||
this.Email = email
|
||||
this.Lang = lang
|
||||
this.Name = name
|
||||
this.Password = password
|
||||
this.SiteName = siteName
|
||||
this.SiteUrl = siteUrl
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewInstallInitBaseInfoReqWithDefaults instantiates a new InstallInitBaseInfoReq 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 NewInstallInitBaseInfoReqWithDefaults() *InstallInitBaseInfoReq {
|
||||
this := InstallInitBaseInfoReq{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetContactEmail returns the ContactEmail field value
|
||||
func (o *InstallInitBaseInfoReq) GetContactEmail() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.ContactEmail
|
||||
}
|
||||
|
||||
// GetContactEmailOk returns a tuple with the ContactEmail field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstallInitBaseInfoReq) GetContactEmailOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.ContactEmail, true
|
||||
}
|
||||
|
||||
// SetContactEmail sets field value
|
||||
func (o *InstallInitBaseInfoReq) SetContactEmail(v string) {
|
||||
o.ContactEmail = v
|
||||
}
|
||||
|
||||
// GetEmail returns the Email field value
|
||||
func (o *InstallInitBaseInfoReq) GetEmail() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Email
|
||||
}
|
||||
|
||||
// GetEmailOk returns a tuple with the Email field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstallInitBaseInfoReq) GetEmailOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Email, true
|
||||
}
|
||||
|
||||
// SetEmail sets field value
|
||||
func (o *InstallInitBaseInfoReq) SetEmail(v string) {
|
||||
o.Email = v
|
||||
}
|
||||
|
||||
// GetLang returns the Lang field value
|
||||
func (o *InstallInitBaseInfoReq) GetLang() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Lang
|
||||
}
|
||||
|
||||
// GetLangOk returns a tuple with the Lang field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstallInitBaseInfoReq) GetLangOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Lang, true
|
||||
}
|
||||
|
||||
// SetLang sets field value
|
||||
func (o *InstallInitBaseInfoReq) SetLang(v string) {
|
||||
o.Lang = v
|
||||
}
|
||||
|
||||
// GetName returns the Name field value
|
||||
func (o *InstallInitBaseInfoReq) GetName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Name
|
||||
}
|
||||
|
||||
// GetNameOk returns a tuple with the Name field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstallInitBaseInfoReq) GetNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Name, true
|
||||
}
|
||||
|
||||
// SetName sets field value
|
||||
func (o *InstallInitBaseInfoReq) SetName(v string) {
|
||||
o.Name = v
|
||||
}
|
||||
|
||||
// GetPassword returns the Password field value
|
||||
func (o *InstallInitBaseInfoReq) GetPassword() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Password
|
||||
}
|
||||
|
||||
// GetPasswordOk returns a tuple with the Password field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstallInitBaseInfoReq) GetPasswordOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Password, true
|
||||
}
|
||||
|
||||
// SetPassword sets field value
|
||||
func (o *InstallInitBaseInfoReq) SetPassword(v string) {
|
||||
o.Password = v
|
||||
}
|
||||
|
||||
// GetSiteName returns the SiteName field value
|
||||
func (o *InstallInitBaseInfoReq) GetSiteName() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.SiteName
|
||||
}
|
||||
|
||||
// GetSiteNameOk returns a tuple with the SiteName field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstallInitBaseInfoReq) GetSiteNameOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.SiteName, true
|
||||
}
|
||||
|
||||
// SetSiteName sets field value
|
||||
func (o *InstallInitBaseInfoReq) SetSiteName(v string) {
|
||||
o.SiteName = v
|
||||
}
|
||||
|
||||
// GetSiteUrl returns the SiteUrl field value
|
||||
func (o *InstallInitBaseInfoReq) GetSiteUrl() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.SiteUrl
|
||||
}
|
||||
|
||||
// GetSiteUrlOk returns a tuple with the SiteUrl field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *InstallInitBaseInfoReq) GetSiteUrlOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.SiteUrl, true
|
||||
}
|
||||
|
||||
// SetSiteUrl sets field value
|
||||
func (o *InstallInitBaseInfoReq) SetSiteUrl(v string) {
|
||||
o.SiteUrl = v
|
||||
}
|
||||
|
||||
func (o InstallInitBaseInfoReq) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o InstallInitBaseInfoReq) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
toSerialize["contact_email"] = o.ContactEmail
|
||||
toSerialize["email"] = o.Email
|
||||
toSerialize["lang"] = o.Lang
|
||||
toSerialize["name"] = o.Name
|
||||
toSerialize["password"] = o.Password
|
||||
toSerialize["site_name"] = o.SiteName
|
||||
toSerialize["site_url"] = o.SiteUrl
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableInstallInitBaseInfoReq struct {
|
||||
value *InstallInitBaseInfoReq
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableInstallInitBaseInfoReq) Get() *InstallInitBaseInfoReq {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableInstallInitBaseInfoReq) Set(val *InstallInitBaseInfoReq) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableInstallInitBaseInfoReq) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableInstallInitBaseInfoReq) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableInstallInitBaseInfoReq(val *InstallInitBaseInfoReq) *NullableInstallInitBaseInfoReq {
|
||||
return &NullableInstallInitBaseInfoReq{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableInstallInitBaseInfoReq) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableInstallInitBaseInfoReq) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user