Documentation ¶
Index ¶
- Variables
- func BackendAssetsURL(ctx echo.Context) string
- func CheckGlobalCustomerAdd(ctx echo.Context, customerID interface{}, typ string, ...) error
- func CheckRoleCustomerAdd(ctx echo.Context, permission *xrole.RolePermission, behaviorName string, ...) error
- func DefaultCurrency() string
- func DefaultCurrencySymbol() string
- func FrontendAssetsURL(ctx echo.Context) string
- func FrontendURL(ctx echo.Context) string
- func HTMLCurrency(ctx echo.Context, v float64, withFlags ...bool) interface{}
- func HTMLCurrencySymbol(ctx echo.Context) template.HTML
- func SetCurrencySymbol(currency string, symbol string)
- func SiteName() string
- func SiteSlogan() string
- func SiteURL(ctx echo.Context) string
- type ConfigCustomerAdd
- type CustomerAddedCounter
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrCustomerAddClosed = errors.New(`已关闭`) ErrCustomerAddMaxPerDay = errors.New(`已达到今日最大数量`) ErrCustomerAddMaxPending = errors.New(`待审核数量已达上限`) ErrCustomerAddMaxPendingPerDay = errors.New(`待审核数量已达今日上限`) )
View Source
var (
BackendURL = common.BackendURL
)
View Source
var CurrencySymbols = map[string]string{
`CNY`: `¥`,
`USD`: `$`,
`JPY`: `¥`,
`EUR`: `€`,
`GBP`: `£`,
`FRF`: `₣`,
`KRW`: `₩`,
`RUB`: `₽`,
`HKD`: `HK$`,
`AUD`: `A$`,
`CAD`: `C$`,
`INR`: `₹`,
}
CurrencySymbols 货币符号
Functions ¶
func BackendAssetsURL ¶
func CheckGlobalCustomerAdd ¶
func CheckGlobalCustomerAdd(ctx echo.Context, customerID interface{}, typ string, counter CustomerAddedCounter) error
func CheckRoleCustomerAdd ¶
func CheckRoleCustomerAdd(ctx echo.Context, permission *xrole.RolePermission, behaviorName string, customerID interface{}, counter CustomerAddedCounter) error
func DefaultCurrencySymbol ¶ added in v0.2.9
func DefaultCurrencySymbol() string
DefaultCurrencySymbol 默认币种符号
func FrontendAssetsURL ¶
func FrontendURL ¶
func HTMLCurrency ¶ added in v0.2.9
HTMLCurrency HTML模板函数:币种
func HTMLCurrencySymbol ¶ added in v0.2.9
HTMLCurrencySymbol HTML模板函数:币种符号
func SetCurrencySymbol ¶ added in v0.2.9
SetCurrencySymbol 登记货币符号
func SiteSlogan ¶
func SiteSlogan() string
Types ¶
type ConfigCustomerAdd ¶
Click to show internal directories.
Click to hide internal directories.