burgeonsdk

package module
v0.0.0-...-20d4a91 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	EmptyString = ""
	ApiErrCode  = -1
)

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 InitVipCardConfig

func InitVipCardConfig(viptype, customer, store, area, validdate string)

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) AddNewTk

func (bg *BurgeonConnection) AddNewTk()

func (*BurgeonConnection) AddVipIntegral

func (bg *BurgeonConnection) AddVipIntegral(card, billdate, remark string, integral int64) (string, error)

新增VIP积分调整单

func (*BurgeonConnection) ChangeVipBirthday

func (bg *BurgeonConnection) ChangeVipBirthday(card string, birthday string) (string, error)

func (*BurgeonConnection) ChangeVipName

func (bg *BurgeonConnection) ChangeVipName(card string, name string) (string, error)

func (*BurgeonConnection) ChangeVipSex

func (bg *BurgeonConnection) ChangeVipSex(card string, sex string) (string, error)

func (*BurgeonConnection) CreateVip

func (bg *BurgeonConnection) CreateVip(card, mobil, name, birthday, sex, remark string) (string, error)

获新增VIP

func (*BurgeonConnection) GetSign

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

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

func (*BurgeonConnection) GetTimeMillisecondString

func (bg *BurgeonConnection) GetTimeMillisecondString() string

2020-09-26 15:06:23.000

func (*BurgeonConnection) GetVipIntegralByCardNO

func (bg *BurgeonConnection) GetVipIntegralByCardNO(card string) (int64, error)

获取Vip当前积分

func (*BurgeonConnection) GetVipLevelByCardNO

func (bg *BurgeonConnection) GetVipLevelByCardNO(card string) (int64, error)

获取Vip等级

func (*BurgeonConnection) GetVipLevelNameByCard

func (bg *BurgeonConnection) GetVipLevelNameByCard(card string) (string, error)

获取VIP等级名称

func (*BurgeonConnection) GetVipLevelUpMRetail

func (bg *BurgeonConnection) GetVipLevelUpMRetail(card string) (string, error)

func (*BurgeonConnection) GetVipRecordsOfConsumptionByCard

func (bg *BurgeonConnection) GetVipRecordsOfConsumptionByCard(card string) ([][]int64, error)

获取Vip消费记录/返回消费金额,积分,日期[[2165,44,20210304]]

func (*BurgeonConnection) NewObjectCreate

func (this *BurgeonConnection) NewObjectCreate() PostData

func (*BurgeonConnection) NewObjectModify

func (this *BurgeonConnection) NewObjectModify() PostData

func (*BurgeonConnection) NewProcessOrder

func (this *BurgeonConnection) NewProcessOrder() PostData

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) ObjectCreateSetColumn

func (this *PostData) ObjectCreateSetColumn(k string, v interface{})

设置返回结果

func (*PostData) ObjectCreateSetTable

func (this *PostData) ObjectCreateSetTable(t string)

设置查询的表

func (*PostData) ObjectModifySetColumn

func (this *PostData) ObjectModifySetColumn(k string, v interface{})

设置返回结果 partial_update*boolean缺省值:true,表示仅修改传入的<column-name>对应的列

func (*PostData) ObjectModifySetTable

func (this *PostData) ObjectModifySetTable(t string)

设置查询的表

func (*PostData) ProcessOrderDetailObjsAddrefobjs

func (this *PostData) ProcessOrderDetailObjsAddrefobjs(reftable string, list ...map[string]interface{})

设置子表提交数据 表名 各个字段

func (*PostData) ProcessOrderDetailObjsSetTables

func (this *PostData) ProcessOrderDetailObjsSetTables(t ...string)

子表名称 可是复数 多表

func (*PostData) ProcessOrderIfSubmit

func (this *PostData) ProcessOrderIfSubmit(b bool)

存储过程单据是否提交

func (*PostData) ProcessOrderMasterObjSetColumn

func (this *PostData) ProcessOrderMasterObjSetColumn(k string, v interface{})

设置主表字段

func (*PostData) ProcessOrderMasterObjSetTable

func (this *PostData) ProcessOrderMasterObjSetTable(table string)

设置主表名称

func (*PostData) QuerySetCondition

func (this *PostData) QuerySetCondition(k string, v interface{})

设置查询调节 k 条件 v 值

func (*PostData) QuerySetResult

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

设置返回结果

func (*PostData) QuerySetStartRange

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

func (*PostData) QuerySetTable

func (this *PostData) QuerySetTable(t string)

设置查询的表

type VipCardConfig

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

Jump to

Keyboard shortcuts

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