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 地区通用数据结构
func AreaFromCity ¶
func AreaFromCounty ¶
func AreaFromProvince ¶
func AreaListFromCity ¶
func AreaListFromCounty ¶
func AreaListFromProvince ¶
type CascadeArea ¶
type CascadeArea struct {
Province Province `json:"province"`
City City `json:"city"`
County County `json:"county"`
}
CascadeArea 级联地区
func CascadeAreaFromAreas ¶
func CascadeAreaFromAreas(province Province, city City, county County) *CascadeArea
type City ¶
type City struct {
ID uint64 `json:"id"`
AreaName string `json:"area_name"`
AreaId string `json:"area_id"`
ShortAreaName string `json:"short_area_name"`
ParentId string `json:"parent_id"`
ParentName string `json:"parent_name"`
IsOpen uint8 `json:"is_open"`
IsHot uint8 `json:"is_hot"`
}
func CityFromModel ¶
func CityListFromModel ¶
type County ¶
type County struct {
ID uint64 `json:"id"`
AreaName string `json:"area_name"`
AreaId string `json:"area_id"`
ParentId string `json:"parent_id"`
ParentName string `json:"parent_name"`
}
func CountyFromModel ¶
func CountyListFromModel ¶
type MailConfig ¶
type MailConfig struct {
ID uint64 `json:"id"`
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"`
}
func MailConfigFormModel ¶
func MailConfigFormModel(config *common.MailConfig) *MailConfig
func (*MailConfig) ToModel ¶
func (c *MailConfig) ToModel() *common.MailConfig
type Province ¶
type Province struct {
ID uint64 `json:"id"`
AreaName string `json:"area_name"`
ShortAreaName string `json:"short_area_name"`
AreaId string `json:"area_id"`
BigAreaID uint64 `json:"big_area_id"`
}
func ProvinceFromModel ¶
func ProvinceListFromModel ¶
type SenderType ¶
type SenderType string
SenderType 消息发送者类型
const ( SmsSender SenderType = "sms" EmailSender SenderType = "email" )
type SmsConfig ¶
type SmsConfig struct {
ID uint64 `json:"id"`
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"`
}
func SmsConfigFromModel ¶
type SmsTemplate ¶
func SmsTemplateFromModel ¶
func SmsTemplateFromModel(dataModel *common.SmsTemplate) *SmsTemplate
func (*SmsTemplate) ToModel ¶
func (template *SmsTemplate) ToModel() *common.SmsTemplate
Click to show internal directories.
Click to hide internal directories.