burgeonApi

package module
v0.0.0-...-6aa472c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 6, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetNowFirstStringDay

func GetNowFirstStringDay() string

当月第一一天

func GetNowLastStringDay

func GetNowLastStringDay() string

当月最后一天

func GetRandomString

func GetRandomString(l int) string

随机生成字符串

func GetTimeStringDay

func GetTimeStringDay() string

func GetTimeStringMillisecond

func GetTimeStringMillisecond() string

2020-09-26 15:06:23.000

func GetTimeStringSecond

func GetTimeStringSecond() string

2020-09-26 15:06:23

func HandleBirthday

func HandleBirthday(b string) string

微信获取的生日1999-7-1 需要转换为19990707此类型

func SortMd5

func SortMd5(s ...string) string

SortMd5 排序并md5,主要用于计算sign

func SortSha1

func SortSha1(s ...string) string

SortSha1 排序并sha1,主要用于计算signature

func StringToMd5

func StringToMd5(s string) string

func Substr

func Substr(str string, start int, end int) string

Substr 截取字符串 start 起点下标 end 终点下标(不包括)

Types

type BurgeonConnection

type BurgeonConnection struct {
	AppId  string
	AppKey string
	ApiUrl string
}

func (*BurgeonConnection) GetSign

func (bg *BurgeonConnection) GetSign() (string, string)

Burgeon-------------------------------------------------------------------------- APP_KEY_2 + tmp + app_ser_md5s 将密码MD5后和账号时间戳按照 账号 时间戳 密码MD5 拼接 返回

func (*BurgeonConnection) GetTimeStringMillisecond

func (bg *BurgeonConnection) GetTimeStringMillisecond() string

2020-09-26 15:06:23.000

func (*BurgeonConnection) NewQuery

func (this *BurgeonConnection) NewQuery() *PostData

func (*BurgeonConnection) Post

func (bg *BurgeonConnection) Post(comm ...PostData) (string, error)

封装了请求提交函数 只需传入 transactions即可 返回json字符串

type PostData

type PostData struct {
	Id      int                    `json:"id"`
	Command string                 `json:"command"`
	Params  map[string]interface{} `json:"params"`
}

func (*PostData) QueryAddTable

func (this *PostData) QueryAddTable(t string, v interface{})

func (*PostData) QuerySetResult

func (this *PostData) QuerySetResult(columns ...string)

func (*PostData) QuerySetStartRange

func (this *PostData) QuerySetStartRange(start, rg int)

type VipCardConfig

type VipCardConfig struct {
	VipType      string //"ECCO会员卡"  会员卡类型
	Customer     string //"爱步" 经销商
	Store        string //"ECCO公司仓" 所属仓
	ValidDate    string ////"20301231" 过期时间
	IntegralArea string //"ECCO区域" 积分区域
	VipBrandName string //Vip品牌名
	TkEndDate    string //新用户送的券的有效期
}

Jump to

Keyboard shortcuts

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