Documentation ¶
Overview ¶
*
计算佣金
2020/05/22
string functions
System info
Index ¶
- func ByteToUnitSize(Size interface{}) (float64, string)
- func CpuUsage() string
- func DeleteExtraSpace(s string) string
- func DistributionPrice(business map[string]string, productSpecialPrice []map[string]string, ...) (float64, error)
- func FileUsage() []interface{}
- func FloatAdd(str ...interface{}) float64
- func FloatMul(str ...interface{}) float64
- func FloatQuo(str ...interface{}) float64
- func FloatSub(str ...interface{}) float64
- func FormatDate(str string) string
- func FormatDateTime(str string) string
- func FormatUUID(buf []byte) (string, error)
- func GenerateRandomBytes(size int) ([]byte, error)
- func GenerateUUID() (string, error)
- func GetDomain(req *http.Request) string
- func GetHost(req *http.Request) string
- func GetNetConfig() []interface{}
- func GetPage(pageNum, pageSize interface{}) (string, string)
- func GetRandomNumber(length int) string
- func GetRandomString(length int) string
- func IoUsage() map[string]string
- func IsEmail(email string) bool
- func IsInStringArray(arr []string, str string) bool
- func IsMobile(mobile string) bool
- func LoadAverage() map[string]string
- func MergeStringMap(x, y map[string]string) map[string]string
- func NetBytes(Iface string) []string
- func NetUsage() []interface{}
- func NewUUID() string
- func ParamsString(param string) string
- func ParseUUID(uuid string) ([]byte, error)
- func PutNetConfig(mString map[string]string) error
- func SetHeader(w http.ResponseWriter, resp *http.Request)
- func StrFirstToUpper(str string) string
- func StringJoin(s ...string) string
- func ToFloat64(v interface{}) (float64, error)
- func ToInt(inter interface{}) int
- func ToInt64(inter interface{}) int64
- func ToMapStringArray(x interface{}) ([]map[string]string, error)
- func ToStr(v interface{}) string
- func ToString(v interface{}) string
- func UrlJoin(host, url string) string
- func VipPrice(productSpecialPrice []map[string]string, productPrice interface{}) (float64, error)
- type Validate
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DistributionPrice ¶
func DistributionPrice(business map[string]string, productSpecialPrice []map[string]string, distributionPrice interface{}, percentAge interface{}, productPrice interface{}) (float64, error)
*
- 计算某一商品对分销商的分销价
- @param business 分销商信息
- @param productSpecialPrice 分销特殊价格
- @param distributionPrice 基础分销价
- @param percentage 分销比例
- @param productPrice 商品销售价
- 2020/05/22
- gz
func FloatMul ¶
func FloatMul(str ...interface{}) float64
*
- float相乘
- @param str 被除数,除数,保留小数位数
- 2020/05/25
- gz
func FloatQuo ¶
func FloatQuo(str ...interface{}) float64
*
- float相除
- @param str 被除数,除数,保留小数位数
- 2020/05/25
- gz
func FloatSub ¶
func FloatSub(str ...interface{}) float64
*
- float相减
- @param str 被减数,减数...
- 2020/05/22
- gz
func FormatDate ¶
func FormatDateTime ¶
func FormatUUID ¶
func GenerateRandomBytes ¶
GenerateRandomBytes is used to generate random bytes of given size.
func GenerateUUID ¶
GenerateUUID is used to generate a random UUID
func GetPage ¶
*
- 根据第几页计算从第几行开始
- @param pageNum 第几页
- @param pageSize 每页几行
- @return from,offset 开始行数,偏移量
- 2020/05/15
- gz
Types ¶
Click to show internal directories.
Click to hide internal directories.