service

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: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorMessage

type ErrorMessage string

ErrorMessage 错误信息类型

const (
	EMInputStringLengthError ErrorMessage = "{name}不能超过{length}个字,请重新输入。"
	EMMissUserIdError        ErrorMessage = "缺少用户ID"
	EMMissGoodsIdError       ErrorMessage = "缺少商品ID"
	EMMissUserTypeError      ErrorMessage = "用户类型错误"
	EMAccountDisable         ErrorMessage = "你的账号已经被系统禁止登录,请寻求客服帮助"
	EMValidCodeError         ErrorMessage = "验证码错误"
	EMValidCodeExpireError   ErrorMessage = "验证码已过期"
	EMValidCodeLimitError    ErrorMessage = "操作太频繁,请稍后再尝试"
)
const (
	EMFileSizeLimitError ErrorMessage = "当前选择的文件大小超过限制,请按照上传规定的要求处理后重新上传。"
	EMFileTypeError      ErrorMessage = "当前选择的文件格式不支持,请按照上传规定的要求处理后重新上传。"
)

func (ErrorMessage) Error

func (em ErrorMessage) Error() string

Error

func (ErrorMessage) Param

func (em ErrorMessage) Param(param map[string]string) ErrorMessage

Param 参数设置

func (ErrorMessage) String

func (em ErrorMessage) String() string

String

Directories

Path Synopsis
app
do
domain
reply
api
rpc

Jump to

Keyboard shortcuts

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