更新文档内容
This commit is contained in:
223
model_schema_user_modify_password_req.go
Normal file
223
model_schema_user_modify_password_req.go
Normal file
@@ -0,0 +1,223 @@
|
||||
/*
|
||||
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
||||
|
||||
API version: 1.0.0
|
||||
*/
|
||||
|
||||
// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
|
||||
|
||||
package openapi
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
)
|
||||
|
||||
// checks if the SchemaUserModifyPasswordReq type satisfies the MappedNullable interface at compile time
|
||||
var _ MappedNullable = &SchemaUserModifyPasswordReq{}
|
||||
|
||||
// SchemaUserModifyPasswordReq struct for SchemaUserModifyPasswordReq
|
||||
type SchemaUserModifyPasswordReq struct {
|
||||
CaptchaCode *string `json:"captcha_code,omitempty"`
|
||||
CaptchaId *string `json:"captcha_id,omitempty"`
|
||||
OldPass *string `json:"old_pass,omitempty"`
|
||||
Pass string `json:"pass"`
|
||||
}
|
||||
|
||||
// NewSchemaUserModifyPasswordReq instantiates a new SchemaUserModifyPasswordReq 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 NewSchemaUserModifyPasswordReq(pass string) *SchemaUserModifyPasswordReq {
|
||||
this := SchemaUserModifyPasswordReq{}
|
||||
this.Pass = pass
|
||||
return &this
|
||||
}
|
||||
|
||||
// NewSchemaUserModifyPasswordReqWithDefaults instantiates a new SchemaUserModifyPasswordReq 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 NewSchemaUserModifyPasswordReqWithDefaults() *SchemaUserModifyPasswordReq {
|
||||
this := SchemaUserModifyPasswordReq{}
|
||||
return &this
|
||||
}
|
||||
|
||||
// GetCaptchaCode returns the CaptchaCode field value if set, zero value otherwise.
|
||||
func (o *SchemaUserModifyPasswordReq) GetCaptchaCode() string {
|
||||
if o == nil || IsNil(o.CaptchaCode) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.CaptchaCode
|
||||
}
|
||||
|
||||
// GetCaptchaCodeOk returns a tuple with the CaptchaCode field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaUserModifyPasswordReq) GetCaptchaCodeOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.CaptchaCode) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CaptchaCode, true
|
||||
}
|
||||
|
||||
// HasCaptchaCode returns a boolean if a field has been set.
|
||||
func (o *SchemaUserModifyPasswordReq) HasCaptchaCode() bool {
|
||||
if o != nil && !IsNil(o.CaptchaCode) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCaptchaCode gets a reference to the given string and assigns it to the CaptchaCode field.
|
||||
func (o *SchemaUserModifyPasswordReq) SetCaptchaCode(v string) {
|
||||
o.CaptchaCode = &v
|
||||
}
|
||||
|
||||
// GetCaptchaId returns the CaptchaId field value if set, zero value otherwise.
|
||||
func (o *SchemaUserModifyPasswordReq) GetCaptchaId() string {
|
||||
if o == nil || IsNil(o.CaptchaId) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.CaptchaId
|
||||
}
|
||||
|
||||
// GetCaptchaIdOk returns a tuple with the CaptchaId field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaUserModifyPasswordReq) GetCaptchaIdOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.CaptchaId) {
|
||||
return nil, false
|
||||
}
|
||||
return o.CaptchaId, true
|
||||
}
|
||||
|
||||
// HasCaptchaId returns a boolean if a field has been set.
|
||||
func (o *SchemaUserModifyPasswordReq) HasCaptchaId() bool {
|
||||
if o != nil && !IsNil(o.CaptchaId) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetCaptchaId gets a reference to the given string and assigns it to the CaptchaId field.
|
||||
func (o *SchemaUserModifyPasswordReq) SetCaptchaId(v string) {
|
||||
o.CaptchaId = &v
|
||||
}
|
||||
|
||||
// GetOldPass returns the OldPass field value if set, zero value otherwise.
|
||||
func (o *SchemaUserModifyPasswordReq) GetOldPass() string {
|
||||
if o == nil || IsNil(o.OldPass) {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
return *o.OldPass
|
||||
}
|
||||
|
||||
// GetOldPassOk returns a tuple with the OldPass field value if set, nil otherwise
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaUserModifyPasswordReq) GetOldPassOk() (*string, bool) {
|
||||
if o == nil || IsNil(o.OldPass) {
|
||||
return nil, false
|
||||
}
|
||||
return o.OldPass, true
|
||||
}
|
||||
|
||||
// HasOldPass returns a boolean if a field has been set.
|
||||
func (o *SchemaUserModifyPasswordReq) HasOldPass() bool {
|
||||
if o != nil && !IsNil(o.OldPass) {
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
// SetOldPass gets a reference to the given string and assigns it to the OldPass field.
|
||||
func (o *SchemaUserModifyPasswordReq) SetOldPass(v string) {
|
||||
o.OldPass = &v
|
||||
}
|
||||
|
||||
// GetPass returns the Pass field value
|
||||
func (o *SchemaUserModifyPasswordReq) GetPass() string {
|
||||
if o == nil {
|
||||
var ret string
|
||||
return ret
|
||||
}
|
||||
|
||||
return o.Pass
|
||||
}
|
||||
|
||||
// GetPassOk returns a tuple with the Pass field value
|
||||
// and a boolean to check if the value has been set.
|
||||
func (o *SchemaUserModifyPasswordReq) GetPassOk() (*string, bool) {
|
||||
if o == nil {
|
||||
return nil, false
|
||||
}
|
||||
return &o.Pass, true
|
||||
}
|
||||
|
||||
// SetPass sets field value
|
||||
func (o *SchemaUserModifyPasswordReq) SetPass(v string) {
|
||||
o.Pass = v
|
||||
}
|
||||
|
||||
func (o SchemaUserModifyPasswordReq) MarshalJSON() ([]byte, error) {
|
||||
toSerialize,err := o.ToMap()
|
||||
if err != nil {
|
||||
return []byte{}, err
|
||||
}
|
||||
return json.Marshal(toSerialize)
|
||||
}
|
||||
|
||||
func (o SchemaUserModifyPasswordReq) ToMap() (map[string]interface{}, error) {
|
||||
toSerialize := map[string]interface{}{}
|
||||
if !IsNil(o.CaptchaCode) {
|
||||
toSerialize["captcha_code"] = o.CaptchaCode
|
||||
}
|
||||
if !IsNil(o.CaptchaId) {
|
||||
toSerialize["captcha_id"] = o.CaptchaId
|
||||
}
|
||||
if !IsNil(o.OldPass) {
|
||||
toSerialize["old_pass"] = o.OldPass
|
||||
}
|
||||
toSerialize["pass"] = o.Pass
|
||||
return toSerialize, nil
|
||||
}
|
||||
|
||||
type NullableSchemaUserModifyPasswordReq struct {
|
||||
value *SchemaUserModifyPasswordReq
|
||||
isSet bool
|
||||
}
|
||||
|
||||
func (v NullableSchemaUserModifyPasswordReq) Get() *SchemaUserModifyPasswordReq {
|
||||
return v.value
|
||||
}
|
||||
|
||||
func (v *NullableSchemaUserModifyPasswordReq) Set(val *SchemaUserModifyPasswordReq) {
|
||||
v.value = val
|
||||
v.isSet = true
|
||||
}
|
||||
|
||||
func (v NullableSchemaUserModifyPasswordReq) IsSet() bool {
|
||||
return v.isSet
|
||||
}
|
||||
|
||||
func (v *NullableSchemaUserModifyPasswordReq) Unset() {
|
||||
v.value = nil
|
||||
v.isSet = false
|
||||
}
|
||||
|
||||
func NewNullableSchemaUserModifyPasswordReq(val *SchemaUserModifyPasswordReq) *NullableSchemaUserModifyPasswordReq {
|
||||
return &NullableSchemaUserModifyPasswordReq{value: val, isSet: true}
|
||||
}
|
||||
|
||||
func (v NullableSchemaUserModifyPasswordReq) MarshalJSON() ([]byte, error) {
|
||||
return json.Marshal(v.value)
|
||||
}
|
||||
|
||||
func (v *NullableSchemaUserModifyPasswordReq) UnmarshalJSON(src []byte) error {
|
||||
v.isSet = true
|
||||
return json.Unmarshal(src, &v.value)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user