getPsUser

package
v0.0.0-...-391253a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2023 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package getPsUser - This file is auto-generated from the update_all.sh script. Do not modify anything here. Any changes to this EndPoint should be made in the data.go file. The only exception is the AppService.login package.

Index

Constants

View Source
const Disabled = false
View Source
const EndPointName = "AppService.getPsUser"
View Source
const Url = "/v1/userService/getPsUser"

Variables

This section is empty.

Functions

This section is empty.

Types

type EndPoint

type EndPoint struct {
	api.EndPointStruct
	Request  Request
	Response Response
}

EndPoint - Holds the request, response and web method structures.

func Assert

func Assert(e api.EndPoint) EndPoint

Assert - Used to obtain locally scoped EndPoint methods, (not visible from api.EndPoint).

func Init

func Init(apiRoot api.Web) EndPoint

Init - Used to initialize a new endpoint instance. Usually called from an area.

func (EndPoint) CacheFilename

func (e EndPoint) CacheFilename() string

CacheFilename - Check if a cache file exists for this EndPoint.

func (EndPoint) Call

func (e EndPoint) Call() api.EndPoint

Call - Once RequestData is populated, this will access the iSolarCloud API and populate ResultData.

func (EndPoint) GetArea

func (e EndPoint) GetArea() api.AreaName

GetArea - Returns the API area that this EndPoint is located.

func (EndPoint) GetCacheTimeout

func (e EndPoint) GetCacheTimeout() time.Duration

GetCacheTimeout - Return the cache timeout for this EndPoint.

func (*EndPoint) GetData

func (e *EndPoint) GetData() api.DataMap

func (EndPoint) GetEndPointData

func (e EndPoint) GetEndPointData() api.DataMap

func (EndPoint) GetEndPointDataTables

func (e EndPoint) GetEndPointDataTables() output.Tables

func (EndPoint) GetEndPointResultTable

func (e EndPoint) GetEndPointResultTable() output.Table

func (EndPoint) GetError

func (e EndPoint) GetError() error

GetError - Get the error code for this EndPoint.

func (EndPoint) GetJsonData

func (e EndPoint) GetJsonData(raw bool) output.Json

GetJsonData - Get the JSON representation of ResultData, either as condensed or "pretty".

func (EndPoint) GetName

func (e EndPoint) GetName() api.EndPointName

GetName - Returns the API EndPoint name.

func (EndPoint) GetRequest

func (e EndPoint) GetRequest() Request

GetRequest - Get the Request structure as scoped by this endpoint.

func (EndPoint) GetRequestArgNames

func (e EndPoint) GetRequestArgNames() map[string]string

GetRequestArgNames -

func (EndPoint) GetRequestJson

func (e EndPoint) GetRequestJson() output.Json

GetRequestJson - Return the Request structure as a JSON string.

func (EndPoint) GetResponse

func (e EndPoint) GetResponse() Response

GetResponse - Get the Response structure as scoped by this endpoint.

func (EndPoint) GetResponseJson

func (e EndPoint) GetResponseJson() output.Json

GetResponseJson - Return the Response structure as a JSON string.

func (EndPoint) GetUrl

func (e EndPoint) GetUrl() api.EndPointUrl

GetUrl - Returns the API EndPoint url.

func (EndPoint) Help

func (e EndPoint) Help() string

Help - Return help information on the JSON structure used to populate RequestData.

func (EndPoint) Init

func (e EndPoint) Init(apiRoot api.Web) *EndPoint

Init - If the endpoint needs to be re-initialized.

func (EndPoint) IsDebug

func (e EndPoint) IsDebug() bool

IsDebug - Are we in debug mode?

func (EndPoint) IsDisabled

func (e EndPoint) IsDisabled() bool

IsDisabled - Is this endpoint disabled? See data.go Disabled constant.

func (EndPoint) IsError

func (e EndPoint) IsError() bool

IsError - Is there an error?

func (EndPoint) IsRequestValid

func (e EndPoint) IsRequestValid() error

IsRequestValid - Is api.RequestCommon and RequestData valid?

func (EndPoint) IsResponseValid

func (e EndPoint) IsResponseValid() error

IsResponseValid - Is api.ResponseCommon and ResultData valid?

func (EndPoint) MarshalJSON

func (e EndPoint) MarshalJSON() ([]byte, error)

MarshalJSON - Marshall the EndPoint.

func (EndPoint) ReadDataFile

func (e EndPoint) ReadDataFile() error

ReadDataFile - Read a JSON file and populate the ResultData structure. (File names will default to AREA-ENDPOINT.json )

func (EndPoint) RequestFingerprint

func (e EndPoint) RequestFingerprint() string

RequestFingerprint - Check if a cache file exists for this EndPoint.

func (EndPoint) RequestRef

func (e EndPoint) RequestRef() interface{}

RequestRef - Return the locally scoped Request structure.

func (EndPoint) RequestString

func (e EndPoint) RequestString() string

RequestString - Return the Request structure as a human-readable string.

func (EndPoint) ResponseRef

func (e EndPoint) ResponseRef() interface{}

ResponseRef - Return the locally scoped Response structure.

func (EndPoint) ResponseString

func (e EndPoint) ResponseString() string

ResponseString - Return the Response structure as a human-readable string.

func (EndPoint) ResultDataRef

func (e EndPoint) ResultDataRef() ResultData

ResultDataRef - Return the locally scoped ResultData structure.

func (EndPoint) SetCacheTimeout

func (e EndPoint) SetCacheTimeout(duration time.Duration) api.EndPoint

SetCacheTimeout - Set the cache timeout for this EndPoint. (Defaults to 1 hour.)

func (EndPoint) SetError

func (e EndPoint) SetError(format string, a ...interface{}) api.EndPoint

SetError - Set the error code for this EndPoint.

func (EndPoint) SetFilenamePrefix

func (e EndPoint) SetFilenamePrefix(format string, args ...interface{}) string

SetFilenamePrefix - Produce filename based on area and endpoint name.

func (EndPoint) SetRequest

func (e EndPoint) SetRequest(ref interface{}) api.EndPoint

SetRequest - Save an interface reference as either api.RequestCommon or RequestData.

func (EndPoint) SetRequestByJson

func (e EndPoint) SetRequestByJson(j output.Json) api.EndPoint

SetRequestByJson - Save RequestData from a JSON string.

func (EndPoint) SetResponse

func (e EndPoint) SetResponse(ref []byte) api.EndPoint

SetResponse - Save a JSON string to the Response structure. (Used by the web call method.)

func (EndPoint) String

func (e EndPoint) String() string

String - Stringer method for this EndPoint.

func (EndPoint) WriteDataFile

func (e EndPoint) WriteDataFile() error

WriteDataFile - Write to a file, the contents of ResultData as JSON. (File names will default to AREA-ENDPOINT.json )

type Request

type Request struct {
	api.RequestCommon
	RequestData
}

Request - Holds the api.RequestCommon and user RequestData structures. See data.go for request fields.

type RequestData

type RequestData struct {
}

func (RequestData) Help

func (rd RequestData) Help() string

func (RequestData) IsValid

func (rd RequestData) IsValid() error

type Response

type Response struct {
	api.ResponseCommon
	ResultData ResultData `json:"result_data" PointIdReplace:"true"`
}

Response - Holds the api.ResponseCommon and endpoint specific ResultData structures. See data.go for response fields.

type ResultData

type ResultData struct {
	BackgroundColor              valueTypes.Integer  `json:"background_color"`
	BloodType                    valueTypes.String   `json:"blood_type"`
	CountryId                    valueTypes.Integer  `json:"country_id"`
	CountryName                  valueTypes.String   `json:"country_name"`
	CreateDate                   valueTypes.DateTime `json:"create_date" PointNameDateFormat:"DateTimeLayout"`
	CreateUserId                 valueTypes.Integer  `json:"create_user_id"`
	DiseaseHis                   valueTypes.String   `json:"disease_his"`
	Email                        valueTypes.String   `json:"email"`
	EnglishName                  valueTypes.String   `json:"english_name"`
	IsAgreeGdpr                  valueTypes.Bool     `json:"is_agree_gdpr"`
	IsCanModifyUserAccount       valueTypes.Bool     `json:"is_can_modify_user_account"`
	IsDst                        valueTypes.Bool     `json:"is_dst"`
	IsGdpr                       valueTypes.Bool     `json:"is_gdpr"`
	IsNewVersion                 valueTypes.Bool     `json:"is_new_version"`
	IsOpenProtocol               valueTypes.Bool     `json:"is_open_protocol"`
	IsReceiveNotice              valueTypes.Bool     `json:"is_receive_notice"`
	IsSharePosition              valueTypes.Bool     `json:"is_share_position"`
	IsValidMobileEmail           valueTypes.Bool     `json:"is_valid_mobile_email"`
	LackOfInformation            valueTypes.Integer  `json:"lack_of_information"`
	Language                     valueTypes.String   `json:"language"`
	MobileTel                    valueTypes.String   `json:"moble_tel" PointId:"mobile_tel"`
	OrgId                        valueTypes.Integer  `json:"org_id"`
	PhotoId                      valueTypes.Integer  `json:"photo_id"`
	PhotoURL                     valueTypes.String   `json:"photo_url"`
	RootOrgId                    valueTypes.Integer  `json:"root_org_id"`
	Sex                          valueTypes.String   `json:"sex"`
	Stylename                    valueTypes.String   `json:"stylename"`
	TimeZoneId                   valueTypes.Integer  `json:"time_zone_id"`
	Timezone                     valueTypes.String   `json:"timezone"`
	UserAccount                  valueTypes.String   `json:"user_account"`
	UserAccountModifyCount       valueTypes.Integer  `json:"user_account_modify_count"`
	UserAccountModifyRemainTimes valueTypes.Integer  `json:"user_account_modify_remain_times"`
	UserDealerOrgCode            valueTypes.String   `json:"user_dealer_org_code"`
	UserId                       valueTypes.Integer  `json:"user_id"`
	UserLanguage                 valueTypes.String   `json:"user_language"`
	UserLevel                    valueTypes.Integer  `json:"user_level"`
	UserName                     valueTypes.String   `json:"user_name"`
	UserOrgInfo                  struct {
		DealerOrgCode                 valueTypes.String  `json:"dealer_org_code"`
		Email                         valueTypes.String  `json:"email"`
		Installer                     valueTypes.String  `json:"installer"`
		InstallerEmail                valueTypes.String  `json:"installer_email"`
		InstallerPhone                valueTypes.String  `json:"installer_phone"`
		IsCountryDefaultDealerOrgCode valueTypes.Bool    `json:"is_country_default_dealer_org_code"`
		MobileTel                     valueTypes.String  `json:"moble_tel" PointId:"mobile_tel"`
		OrgId                         valueTypes.Integer `json:"org_id"`
		OrgIndexCode                  valueTypes.String  `json:"org_index_code"`
		OrgName                       valueTypes.String  `json:"org_name"`
		UpDealerEmail                 valueTypes.String  `json:"up_dealer_email"`
		UpDealerMobileTel             valueTypes.String  `json:"up_dealer_moble_tel" PointId:up_dealer_mobile_tel"`
		UpDealerOrgCode               valueTypes.String  `json:"up_dealer_org_code"`
		UpDealerOrgInstaller          valueTypes.String  `json:"up_dealer_org_installer"`
		UpDealerOrgInstallerEmail     valueTypes.String  `json:"up_dealer_org_installer_email"`
		UpDealerOrgInstallerPhone     valueTypes.String  `json:"up_dealer_org_installer_phone"`
		UpDealerUserName              valueTypes.String  `json:"up_dealer_user_name"`
		UpDealerUserTelNationCode     valueTypes.String  `json:"up_dealer_user_tel_nation_code"`
		UpOrgId                       valueTypes.Integer `json:"up_org_id"`
		UpOrgName                     valueTypes.String  `json:"up_org_name"`
		UserName                      valueTypes.String  `json:"user_name"`
		UserTelNationCode             valueTypes.String  `json:"user_tel_nation_code"`
	} `json:"user_org_info"`
	UserPassword      valueTypes.String  `json:"user_password"`
	UserTelNationCode valueTypes.String  `json:"user_tel_nation_code"`
	ValidFlag         valueTypes.Integer `json:"valid_flag"`
	Voice             valueTypes.Integer `json:"voice"`
	WorkTel           valueTypes.String  `json:"work_tel"`
}

func AssertResultData

func AssertResultData(e api.EndPoint) ResultData

AssertResultData - Used to obtain locally scoped ResultData methods, (not visible from api.EndPoint).

func (*ResultData) IsValid

func (e *ResultData) IsValid() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL