models

package
v0.0.0-...-61f9315 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecryptRsa

func DecryptRsa(inputString string) string

func InitConfig

func InitConfig(cfg string) error

Types

type GlobalConfig

type GlobalConfig struct {
	Http *HttpConfig `json:"http"`
	Mail *MailConfig `json:"mail"`
}

func Config

func Config() *GlobalConfig

type HttpConfig

type HttpConfig struct {
	Port  string `json:"port"`
	Token string `json:"token"`
}

type MailConfig

type MailConfig struct {
	Enable bool            `json:"enable"`
	Sender []*SenderConfig `json:"sender"`
}

type MailInputObj

type MailInputObj struct {
	CallbackParameter string `json:"callbackParameter"`
	SenderMail        string `json:"senderMail"`
	SenderMailServer  string `json:"senderMailServer"`
	SenderPassword    string `json:"senderPassword"`
	To                string `json:"to"`
	Subject           string `json:"subject"`
	Content           string `json:"content"`
	SSL               string `json:"ssl"`
}

type MailRequestObj

type MailRequestObj struct {
	RequestId string         `json:"requestId"`
	Inputs    []MailInputObj `json:"inputs"`
}

type MailResultObj

type MailResultObj struct {
	ResultCode    string            `json:"resultCode"`
	ResultMessage string            `json:"resultMessage"`
	Results       MailResultOutputs `json:"results"`
}

type MailResultOutputObj

type MailResultOutputObj struct {
	CallbackParameter string `json:"callbackParameter"`
	ErrorCode         string `json:"errorCode"`
	ErrorMessage      string `json:"errorMessage"`
}

type MailResultOutputs

type MailResultOutputs struct {
	Outputs []MailResultOutputObj `json:"outputs"`
}

type SendMailObj

type SendMailObj struct {
	Name           string
	Accept         []string
	Subject        string
	Content        string
	SSL            bool
	Sender         string
	SenderPassword string
	SenderServer   string
}

type SenderConfig

type SenderConfig struct {
	Protocol string `json:"protocol"`
	Name     string `json:"name"`
	User     string `json:"user"`
	Password string `json:"password"`
	Server   string `json:"server"`
	Token    string `json:"token"`
}

type SmsInputObj

type SmsInputObj struct {
	CallbackParameter string `json:"callbackParameter"`
	SecretId          string `json:"secretId"`
	SecretKey         string `json:"secretKey"`
	SmsSdkAppId       string `json:"smsSdkAppId"`
	TemplateId        string `json:"templateId"`
	Sender            string `json:"sender"`
	To                string `json:"to"`
	Content           string `json:"content"`
}

type SmsRequest

type SmsRequest struct {
	SmsSdkAppId      string   `json:"SmsSdkAppId"`
	PhoneNumberSet   []string `json:"PhoneNumberSet"`
	TemplateId       string   `json:"TemplateId"`
	SignName         string   `json:"SignName"`
	TemplateParamSet []string `json:"TemplateParamSet"`
}

type SmsRequestObj

type SmsRequestObj struct {
	RequestId string        `json:"requestId"`
	Inputs    []SmsInputObj `json:"inputs"`
}

type SmsResponse

type SmsResponse struct {
	Response SmsResponseObj `json:"Response"`
}

type SmsResponseObj

type SmsResponseObj struct {
	RequestId     string              `json:"RequestId"`
	SendStatusSet []*SmsSendStatusObj `json:"SendStatusSet"`
}

type SmsResultObj

type SmsResultObj struct {
	ResultCode    string           `json:"resultCode"`
	ResultMessage string           `json:"resultMessage"`
	Results       SmsResultOutputs `json:"results"`
}

type SmsResultOutputObj

type SmsResultOutputObj struct {
	CallbackParameter string `json:"callbackParameter"`
	ErrorCode         string `json:"errorCode"`
	ErrorMessage      string `json:"errorMessage"`
}

type SmsResultOutputs

type SmsResultOutputs struct {
	Outputs []SmsResultOutputObj `json:"outputs"`
}

type SmsSendStatusObj

type SmsSendStatusObj struct {
	SerialNo       string `json:"SerialNo"`
	PhoneNumber    string `json:"PhoneNumber"`
	Fee            int    `json:"Fee"`
	Code           string `json:"Code"`
	Message        string `json:"Message"`
	IsoCode        string `json:"IsoCode"`
	SessionContext string `json:"SessionContext"`
}

Jump to

Keyboard shortcuts

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