common

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Area

type Area struct {
	AreaId       string `json:"area_id"`
	AreaName     string `json:"area_name"`
	ParentAreaId string `json:"parent_area_id"`
}

Area 地区领域对象

type CascadeArea

type CascadeArea struct {
	Province Area `json:"province"`
	City     Area `json:"city"`
	County   Area `json:"county"`
}

CascadeArea 级联地区领域对象

type MailConfig

type MailConfig struct {
	User      string `json:"user"`
	FromName  string `json:"from_name"`
	Transport string `json:"transport"`
	Username  string `json:"username"`
	Password  string `json:"password"`
	Host      string `json:"host"`
	Port      int    `json:"port"`
}

MailConfig 邮件配置领域对象

type SenderType

type SenderType string

SenderType 消息发送者类型

const (
	SmsSender   SenderType = "sms"
	EmailSender SenderType = "email"
)

type SmsConfig

type SmsConfig struct {
	SmsType         string `json:"sms_type"`
	AppKey          string `json:"app_key"`
	SecretKey       string `json:"secret_key"`
	FreeSignName    string `json:"free_sign_name"`
	ValidCodeExpire uint   `json:"valid_code_expire"`
}

type SmsTemplate

type SmsTemplate struct {
	TemplateName string `json:"template_name"`
	Template     string `json:"template"`
	TemplateId   string `json:"template_id"`
}

type ValidCode

type ValidCode struct {
	Code   string `redis:"code"`
	Expire int64  `redis:"expire"`
	Time   int64  `redis:"time"`
}

ValidCode 验证码结构

Jump to

Keyboard shortcuts

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