package
1.6.7
Repository: https://github.com/r2day/base.git
Documentation: pkg.go.dev

# Functions

ApplyId 申请回执.
No description provided by the author
Code2Session 微信的session获取.
ConvertToToken 转换为md5格式.
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: :::::: This routine calculates the distance between two points (given the :::::: latitude/longitude of those points).
No description provided by the author
No description provided by the author
GetAccountId 账号.
GetBrandId 获取品牌id.
GetCartItemId 获取购物车id.
GetCartItemId 获取物品项目id.
GetCategoryId 获取分组.
GetClientIP gets the correct IP for the end client instead of the proxy.
GetDepartmentId 部门id.
GetDishesId 获取菜品id.
GetDurationInMilliseconds takes a start time and returns a duration in milliseconds.
GetEnv returns an environment variable or a default value if not present.
GetItemId 获取物品id.
GetOrderId 获取购物车id.
GetOrderItemId 获取购物车id.
GetStatus filter thr status from client input.
GetStoreId 账号.
GetUnitId 规格id.
GetUserID gets the current_user ID as a string.
InitPassword 初始密码.
LoadEnvVars will load a ".env[.development|.test]" file if it exists and set ENV vars.
MerchantId 交易id.
MerchantKey 交易id.
SessionId 通用session.
SetBoolByFieldName 通过字段名称设定bool值.
No description provided by the author
SmsCode 短信验证码.
TransactionId 交易id.
UseJSONLogFormat sets up the JSON log formatter.
No description provided by the author

# Structs

JSONFormatter is a logger for use with Logrus.