system

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: May 29, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AppName = "system"
)
View Source
const (
	// DEFAULT_CONFIG_VERSION 默认版本
	DEFAULT_CONFIG_VERSION = "v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Version    string             `bson:"_id" json:"version"`
	Email      *mail.Config       `bson:"email" json:"email"`
	SMS        *sms.Config        `bson:"sms" json:"sms"`
	VerifyCode *verifycode.Config `bson:"verify_code" json:"verify_code"`
}

Config 系统配置

func NewDefaultConfig

func NewDefaultConfig() *Config

NewDefaultConfig todo

func (*Config) Desensitize

func (c *Config) Desensitize()

Desensitize 脱敏

type Service

type Service interface {
	UpdateEmail(*mail.Config) error
	UpdateSMS(*sms.Config) error
	UpdateVerifyCode(*verifycode.Config) error
	GetConfig() (*Config, error)
	InitConfig(*Config) error
}

Service 存储服务

Directories

Path Synopsis
sms

Jump to

Keyboard shortcuts

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