Documentation ¶
Index ¶
- Constants
- func GetNowFirstStringDay() string
- func GetNowLastStringDay() string
- func GetRandomString(l int) string
- func GetTimeStringDay() string
- func GetTimeStringMillisecond() string
- func GetTimeStringSecond() string
- func HandleBirthday(b string) string
- func InitVipCardConfig(viptype, customer, store, area, validdate string)
- func SortMd5(s ...string) string
- func SortSha1(s ...string) string
- func StringToMd5(s string) string
- func Substr(str string, start int, end int) string
- type BurgeonConnection
- func (bg *BurgeonConnection) AddNewTk()
- func (bg *BurgeonConnection) AddVipIntegral(card, billdate, remark string, integral int64) (string, error)
- func (bg *BurgeonConnection) ChangeVipBirthday(card string, birthday string) (string, error)
- func (bg *BurgeonConnection) ChangeVipName(card string, name string) (string, error)
- func (bg *BurgeonConnection) ChangeVipSex(card string, sex string) (string, error)
- func (bg *BurgeonConnection) CreateVip(card, mobil, name, birthday, sex, remark string) (string, error)
- func (bg *BurgeonConnection) GetSign() (string, string)
- func (bg *BurgeonConnection) GetTimeMillisecondString() string
- func (bg *BurgeonConnection) GetVipIntegralByCardNO(card string) (int64, error)
- func (bg *BurgeonConnection) GetVipLevelByCardNO(card string) (int64, error)
- func (bg *BurgeonConnection) GetVipLevelNameByCard(card string) (string, error)
- func (bg *BurgeonConnection) GetVipLevelUpMRetail(card string) (string, error)
- func (bg *BurgeonConnection) GetVipRecordsOfConsumptionByCard(card string) ([][]int64, error)
- func (this *BurgeonConnection) NewObjectCreate() PostData
- func (this *BurgeonConnection) NewObjectModify() PostData
- func (this *BurgeonConnection) NewProcessOrder() PostData
- func (this *BurgeonConnection) NewQuery() PostData
- func (bg *BurgeonConnection) Post(comm ...PostData) (string, error)
- type PostData
- func (this *PostData) ObjectCreateSetColumn(k string, v interface{})
- func (this *PostData) ObjectCreateSetTable(t string)
- func (this *PostData) ObjectModifySetColumn(k string, v interface{})
- func (this *PostData) ObjectModifySetTable(t string)
- func (this *PostData) ProcessOrderDetailObjsAddrefobjs(reftable string, list ...map[string]interface{})
- func (this *PostData) ProcessOrderDetailObjsSetTables(t ...string)
- func (this *PostData) ProcessOrderIfSubmit(b bool)
- func (this *PostData) ProcessOrderMasterObjSetColumn(k string, v interface{})
- func (this *PostData) ProcessOrderMasterObjSetTable(table string)
- func (this *PostData) QuerySetCondition(k string, v interface{})
- func (this *PostData) QuerySetResult(columns ...string)
- func (this *PostData) QuerySetStartRange(start, rg int)
- func (this *PostData) QuerySetTable(t string)
- type VipCardConfig
Constants ¶
View Source
const ( EmptyString = "" ApiErrCode = -1 )
Variables ¶
This section is empty.
Functions ¶
func GetTimeStringDay ¶
func GetTimeStringDay() string
func InitVipCardConfig ¶
func InitVipCardConfig(viptype, customer, store, area, validdate string)
func StringToMd5 ¶
Types ¶
type BurgeonConnection ¶
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
type PostData ¶
type PostData struct { Id int `json:"id"` Command string `json:"command"` Params map[string]interface{} `json:"params"` }
func (*PostData) ObjectCreateSetColumn ¶
设置返回结果
func (*PostData) ObjectModifySetColumn ¶
设置返回结果 partial_update*boolean缺省值:true,表示仅修改传入的<column-name>对应的列
func (*PostData) ProcessOrderDetailObjsAddrefobjs ¶
func (this *PostData) ProcessOrderDetailObjsAddrefobjs(reftable string, list ...map[string]interface{})
设置子表提交数据 表名 各个字段
func (*PostData) ProcessOrderDetailObjsSetTables ¶
子表名称 可是复数 多表
func (*PostData) ProcessOrderIfSubmit ¶
存储过程单据是否提交
func (*PostData) ProcessOrderMasterObjSetColumn ¶
设置主表字段
func (*PostData) ProcessOrderMasterObjSetTable ¶
设置主表名称
func (*PostData) QuerySetCondition ¶
设置查询调节 k 条件 v 值
func (*PostData) QuerySetStartRange ¶
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
Click to show internal directories.
Click to hide internal directories.