factroy store
This commit is contained in:
+21
-13
@@ -37,7 +37,6 @@ const (
|
||||
MinSort uint8 = 1 //全局基础最小排序
|
||||
SIZE = 20 //全局基础每页数
|
||||
|
||||
|
||||
DecollatorComma = "," //逗号分割符
|
||||
DecollatorColon = ":"
|
||||
CentralHorizontalLine = " - "
|
||||
@@ -51,18 +50,27 @@ const (
|
||||
StoreAuthBind = 1 // 绑定
|
||||
StoreAuthUnBind = 2 // 解绑
|
||||
|
||||
StatusOk = 1 //正常
|
||||
StatusApply = 2 //申请
|
||||
StatusFirstVerify = 3 //一审
|
||||
StatusSecondVerify = 4 //二审
|
||||
StatusApplyRefuse = 5 //申请拒绝
|
||||
StatusVerifyRefuse = 6 //一审拒绝
|
||||
StatusAdminFirstVerify = 13 //一审
|
||||
StatusAdminSecondVerify = 14 //二审
|
||||
StatusAdminWaitPass = 19 //等待审核
|
||||
StatusAdminSecondRefuse = 16 //审核失败
|
||||
StatusDel = 7 //删除
|
||||
StatusFail = 2 //失败
|
||||
StatusForbidden = 3 //
|
||||
StatusForbiddenString = "3"
|
||||
StatusFail = 2 //全局基础禁用状态
|
||||
StatusFailString = "2"
|
||||
StatusOk = 1 //正常
|
||||
StatusApply = 2 //申请
|
||||
StatusFirstVerify = 3 //一审
|
||||
StatusSecondVerify = 4 //二审
|
||||
StatusApplyRefuse = 5 //申请拒绝
|
||||
StatusVerifyRefuse = 6 //一审拒绝
|
||||
StatusAdminFirstVerify = 13 //一审
|
||||
StatusAdminSecondVerify = 14 //二审
|
||||
StatusAdminWaitPass = 19 //等待审核
|
||||
StatusAdminSecondRefuse = 16 //审核失败
|
||||
StatusDel = 7 //删除
|
||||
StatusDelString = "7" //删除
|
||||
StatusPass = 1 //通过
|
||||
StatusDone = 1 //完成
|
||||
StatusNotPass = 2 //未通过
|
||||
StatusBackfill = 4 //回执完成
|
||||
StatusWaitPass = 9 //待审核
|
||||
|
||||
RpcTimeOut = 5000 //服务连接超时时间 毫秒
|
||||
)
|
||||
|
||||
@@ -256,21 +256,6 @@ func Decrypt(str string) (string, Error) {
|
||||
return str, nil
|
||||
}
|
||||
|
||||
func DecryptMobile(mobile string) string {
|
||||
|
||||
mobile, err := Decrypt(mobile)
|
||||
if err != nil {
|
||||
logx.Error("decrypt mobile error", mobile, err)
|
||||
return mobile
|
||||
}
|
||||
|
||||
if len(mobile) < 11 {
|
||||
return mobile
|
||||
}
|
||||
|
||||
return mobile[:3] + "****" + mobile[7:11]
|
||||
}
|
||||
|
||||
// 接收 [startDate, endDate](格式 "YYYY-MM-DD"),
|
||||
// 返回 [2006-01-02 00:00:00, 2006-01-02 23:59:59]
|
||||
func DateRangeWithTime(dates []string) [2]string {
|
||||
@@ -323,12 +308,6 @@ func CalcAgeStr(birthday string) string {
|
||||
return strconv.Itoa(age)
|
||||
}
|
||||
|
||||
func MaskData(data string, first, end uint8) string {
|
||||
// 2. 截取前3位 + **** + 后4位
|
||||
// Go字符串按字节截取,数字字符单字节,直接切片即可
|
||||
return data[:first] + "****" + data[end:]
|
||||
}
|
||||
|
||||
func RandString(num uint8) string {
|
||||
chars := "23456789abcdefghjkmnpqrstuvwxyzABCDEFGHJKMNPQRSTUVWXYZ"
|
||||
rand.Seed(time.Now().UnixNano())
|
||||
|
||||
Reference in New Issue
Block a user