risk

package
v0.0.0-...-7a73484 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2021 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArgsAddServiceNum

type ArgsAddServiceNum struct {
	ArgsDateBusIdCommon
}

统计消费人数(消费次数)-入参

type ArgsCashCardAssets

type ArgsCashCardAssets struct {
	BusId          int
	CashCardAssets float64 //已兑付金额

}

type ArgsDateBusIdCommon

type ArgsDateBusIdCommon struct {
	BusId    int
	DateTime int64
}

type ArgsDescEarnedProfitRpc

type ArgsDescEarnedProfitRpc struct {
	ArgsDateBusIdCommon
	RefundAssets float64 //退款金额
}

退款-减少营业额(时间取当前订单的创建时间)

type ArgsGetBusCashRateAndShopInfo

type ArgsGetBusCashRateAndShopInfo struct {
	RiskBusId int
}

监管平台直连接口-预付卡消费经营状况/门店信息

type ArgsInformation

type ArgsInformation struct {
	BusId            int    // 商户ID
	ShopId           int    // 门店ID
	MemberId         int    // 会员人员ID
	StaffAddId       int    // 企业员工增加ID
	StaffDelId       int    // 企业员工减少ID
	OrdenrSn         string // 订单编号
	ConsumeLogId     int    // 消费者日志ID
	ServiceCommentId int    // 评分ID
}

添加 统计预付卡风险管理系统信息

type ArgsInsuranceStatic

type ArgsInsuranceStatic struct {
	RelationId      int // 卡包关联ID
	CardPackageId   int // 卡包ID
	CardPackageType int // 卡包类型
}

添加 投保率 入参

type ArgsSalesCardNum

type ArgsSalesCardNum struct {
	ArgsDateBusIdCommon
	SalesCardNum int
}

统计当月发卡数量-入参

type ArgsSalesOrCashCardAssets

type ArgsSalesOrCashCardAssets struct {
	ArgsDateBusIdCommon
	SalesCardAssets float64 //售卡金额
	CashCardAssets  float64 //消费金额
}

统计本月售卡/消费金额-入参

type ArgsStatisticsCardProductUnderRate

type ArgsStatisticsCardProductUnderRate struct {
	ShopId int
}

统计当月卡项/商品下架率

type ArgsStatisticsEarnedProfit

type ArgsStatisticsEarnedProfit struct {
	ArgsDateBusIdCommon
	SingleAmount  float64 //单项目金额
	CardAmount    float64 //卡项金额
	ProductAmount float64 //商品金额
}

统计当月营业额=单项目+售卡+商品金额 入参

type ArgsStatisticsMaxOrderAssets

type ArgsStatisticsMaxOrderAssets struct {
	ArgsDateBusIdCommon
	Assets float64 //单张售卡金额
}

当月单售卡张卡最高金额-入参

type ArgsStatisticsStaffAddRate

type ArgsStatisticsStaffAddRate struct {
	StaffId int
}

统计当月员工新增率-入参

type ArgsStatisticsUserActive

type ArgsStatisticsUserActive struct {
	UserActive float64
	ArgsDateBusIdCommon
}

本月用户活跃度 本月复购人数/总人数(去重)

type ArgsStoreInformation

type ArgsStoreInformation struct {
	BusId int // 商户ID

}

添加预付卡风险管理系统-企业数据信息入参数

type BusBasicAccumulatice

type BusBasicAccumulatice interface {
	//  添加 预付卡风险管理系统--riskId
	BusBasicRisId(ctx context.Context, busId int, reply *bool) (err error)
	// 添加 预付卡风险管理系统--风控系统商户ID 门店总数量统计
	ShopNumRpc(ctx context.Context, shopId int, reply *bool) error
	// 添加 预付卡风险管理系统-会员总人数
	UserNumRpc(ctx context.Context, memberId *int, reply *bool) error
	// 添加 预付卡风险管理系统-统计企业员工人数
	StaffNumRpc(ctx context.Context, staffId *int, reply *bool) error
	// 添加 预付卡风险管理系统 ---- 会员复购率
	PurchaseRate(ctx context.Context, orderSn *string, reply *bool) error
	//添加 预付卡风险管理系统---统计累计已兑付(消费)金额  更新累计兑付率 所辖门店平均年限
	CashCardAssets(ctx context.Context, consumeLogId *int, reply *bool) error
	//添加 预付卡风险管理系统-消费者评分
	ConsumerEvaluation(ctx context.Context, serviceCommentId *int, reply *bool) error
	// 添加 已兑付金额
	AddCashCardAssets(ctx context.Context, args *ArgsCashCardAssets, reply *ReplyCashCardAssets) (err error)
	// 添加 投保率
	AddInsuranceRateRpc(ctx context.Context, args *ArgsInsuranceStatic, reply *bool) error
	//监管平台直连接口-预付卡消费经营状况
	GetBusCashRateAndShopInfo(ctx context.Context, args *ArgsGetBusCashRateAndShopInfo, reply *ReplyGetBusCashRateAndShopInfo) error
	// 添加 产品/卡项/商品总数
	AddGoodsNumRpc(ctx context.Context, args *task.ArgsAddDelGoods, reply *bool) error
	//监管平台直连接口-多商家的经营状况
	GetBussCashInfo(ctx context.Context, riskBusIds *[]int, reply *map[int]ReplyGetBussCashInfo) error
}

type BusBasicIndusAvg

type BusBasicIndusAvg interface {
	//审核商户
	RiskForAuditBus(ctx context.Context, busId *int, reply *bool) error
	//审核店铺
	RiskForAuditShop(ctx context.Context, shopId *int, reply *bool) error
	//员工新增、离职、删除
	RiskForSetStaff(ctx context.Context, staffId *int, reply *bool) error
	//会员新增
	RiskForAddMember(ctx context.Context, memberId *int, reply *bool) error
	//订单支付成功
	RiskForPaySuccess(ctx context.Context, orderSn *string, reply *bool) error
	//店铺面积更新
	RiskForShopAreaUpdate(ctx context.Context, args *bus.ArgsShopAreaUpdate, reply *bool) error
	//新增删除卡项/商品
	RiskForAddDelGoods(ctx context.Context, args *task.ArgsAddDelGoods, reply *bool) error
}

type BusBasicIndusAvgMonth

type BusBasicIndusAvgMonth interface {
	//行业接待人次月度统计
	RiskForIncService(ctx context.Context, busId *int, reply *bool) error
	//行业发卡数量月度统计
	RiskForSaleCard(ctx context.Context, args ArgsSalesCardNum, reply *bool)
}

type BusBasicMonth

type BusBasicMonth interface {
	//统计当月企业新增会员数量
	AddMemberNumRpc(ctx context.Context, memberId *int, reply *bool) error
	//统计当月发卡数量-(前提是订单支付成功)
	AddSalesCardNumRpc(ctx context.Context, args *ArgsSalesCardNum, reply *bool) error
	//统计当月消费人数(消费次数)
	AddServiceNumRpc(ctx context.Context, args *ArgsAddServiceNum, reply *bool) error
	//统计当月员工新增/离职率
	StatisticsStaffAddRateRpc(ctx context.Context, args *ArgsStatisticsStaffAddRate, reply *bool) error
	//统计当月/年度营业额=单项目+售卡+商品金额
	StatisticsEarnedProfitRpc(ctx context.Context, args *ArgsStatisticsEarnedProfit, reply *bool) error
	//用户退款-减少企业当月/年度营业额
	DescEarnedProfitRpc(ctx context.Context, args *ArgsDescEarnedProfitRpc, reply *bool) error
	//本月用户活跃度
	StatisticsUserActiveRpc(ctx context.Context, args *ArgsStatisticsUserActive, reply *bool) error
	//统计当月单售卡张卡最高金额
	StatisticsMaxOrderAssetsRpc(ctx context.Context, args *ArgsStatisticsMaxOrderAssets, reply *bool) error
	//统计本月售卡/消费金额-订单付款成功/确认消费时调用
	SalesOrCashCardAssetsRpc(ctx context.Context, args *ArgsSalesOrCashCardAssets, reply *bool) error
	//统计当月卡项/商品下架率
	StatisticsCardProductUnderRateRpc(ctx context.Context, args *ArgsStatisticsCardProductUnderRate, reply *bool) error
	//确认消费完成,统计消费次数,今日耗卡金额
	RiskStatisticsConsume(ctx context.Context, consumeLogId *int, reply *bool) error
	//订单支付成功,统计(支付订单数,售卡金额,充值卡金额)
	RiskStatisticsOrderPaySuc(ctx context.Context, orderSn *string, reply *bool) error
}

type ReplyCashCardAssets

type ReplyCashCardAssets struct {
	Id                  int     // 预付卡风险管理系统id
	CashCardAssetsTotal float64 // 已兑付金额
	CashRate            float64 // 累计兑付率

}

type ReplyGetBusCashRateAndShopInfo

type ReplyGetBusCashRateAndShopInfo struct {
	CashRate     float64 //兑付率
	ShopNum      int     //企业下的门店数量
	StaffNum     int     //企业下的技师数量
	CardTotalNum int     //发布产品/卡项/商品总数
}

type ReplyGetBussCashInfo

type ReplyGetBussCashInfo struct {
	SalesCardAssets string //累计发卡金额
	CashCardAssets  string //已兑付金额
	CashRate        string //累计兑付率
}

type ReplyRiskInformation

type ReplyRiskInformation struct {
	Id int // 预付卡风险管理系统id
}

添加成功返回信息

Jump to

Keyboard shortcuts

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