Documentation ¶
Index ¶
- func AddLog(args *ArgsAddLog) (price int64, err error)
- func DeleteConfig(args *ArgsDeleteConfig) (err error)
- func SetConfig(args *ArgsSetConfig) (err error)
- type ArgsAddLog
- type ArgsDeleteConfig
- type ArgsGetConfigList
- type ArgsGetLogByOrderID
- type ArgsGetLogList
- type ArgsGetOrgConfig
- type ArgsSetConfig
- type FieldsConfig
- type FieldsLog
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddLog ¶
func AddLog(args *ArgsAddLog) (price int64, err error)
AddLog 添加抽成 本模块同时将完成抽成处理 price 反馈抽取的金额
Types ¶
type ArgsAddLog ¶
type ArgsAddLog struct { //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //针对订单的系统来源 // eg: user_sub / org_sub / mall OrderSystem string `db:"order_system" json:"orderSystem" check:"mark"` //订单金额 OrderPrice int64 `db:"order_price" json:"orderPrice" check:"price"` //关联的订单 OrderID int64 `db:"order_id" json:"orderID" check:"id"` }
ArgsAddLog 添加抽成参数
type ArgsDeleteConfig ¶
type ArgsDeleteConfig struct { //ID ID int64 `db:"id" json:"id" check:"id"` }
ArgsDeleteConfig 删除配置参数
type ArgsGetConfigList ¶
type ArgsGetConfigList struct { //分页 Pages CoreSQLPages.ArgsDataList `json:"pages"` //组织 OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //组织分类ID SortID int64 `db:"sort_id" json:"sortID" check:"id" empty:"true"` }
ArgsGetConfigList 获取配置列表参数
type ArgsGetLogByOrderID ¶
type ArgsGetLogByOrderID struct { //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //关联的订单 OrderID int64 `db:"order_id" json:"orderID" check:"id"` }
ArgsGetLogByOrderID 查询指定订单抽成参数
type ArgsGetLogList ¶
type ArgsGetLogList struct { //分页 Pages CoreSQLPages.ArgsDataList `json:"pages"` //组织 OrgID int64 `json:"orgID" check:"id" empty:"true"` }
ArgsGetLogList 获取日志参数
type ArgsGetOrgConfig ¶
type ArgsGetOrgConfig struct { //组织 OrgID int64 `db:"org_id" json:"orgID" check:"id"` }
ArgsGetOrgConfig 获取商户的佣金设置参数
type ArgsSetConfig ¶
type ArgsSetConfig struct { //组织分类ID SortID int64 `db:"sort_id" json:"sortID" check:"id" empty:"true"` //组织ID // 商户和分类必须指定其中一个,会优先采用商户进行,否则采用分类 OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //针对订单的系统来源 // eg: user_sub / org_sub / mall OrderSystem string `db:"order_system" json:"orderSystem" check:"mark"` //抽成比例 // 单位10万分之%,例如300000对应3%;3对应0.00003% CutPriceProportion int64 `db:"cut_price_proportion" json:"cutPriceProportion"` }
ArgsSetConfig 设置配置参数
type FieldsConfig ¶
type FieldsConfig struct { //ID ID int64 `db:"id" json:"id"` //创建时间 CreateAt time.Time `db:"create_at" json:"createAt"` //组织分类ID SortID int64 `db:"sort_id" json:"sortID" check:"id" empty:"true"` //组织ID // 商户和分类必须指定其中一个,会优先采用商户进行,否则采用分类 OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //针对订单的系统来源 // eg: user_sub / org_sub / mall OrderSystem string `db:"order_system" json:"orderSystem" check:"mark"` //抽成比例 // 单位10万分之%,例如300000对应3%;3对应0.00003% CutPriceProportion int64 `db:"cut_price_proportion" json:"cutPriceProportion"` }
FieldsConfig 抽成约定配置
func GetConfigList ¶
func GetConfigList(args *ArgsGetConfigList) (dataList []FieldsConfig, dataCount int64, err error)
GetConfigList 获取配置列表
func GetOrgConfig ¶
func GetOrgConfig(args *ArgsGetOrgConfig) (data FieldsConfig, err error)
GetOrgConfig 获取商户的佣金设置
type FieldsLog ¶
type FieldsLog struct { //ID ID int64 `db:"id" json:"id"` //创建时间 CreateAt time.Time `db:"create_at" json:"createAt"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //订单金额 OrderPrice int64 `db:"order_price" json:"orderPrice" check:"price"` //抽成金额 CutPrice int64 `db:"cut_price" json:"cutPrice" check:"price"` //抽成时的配置比例 // 单位10万分之%,例如300000对应3%;3对应0.00003% CutPriceProportion int64 `db:"cut_price_proportion" json:"cutPriceProportion"` //关联的订单 OrderID int64 `db:"order_id" json:"orderID" check:"id"` }
FieldsLog 抽抽日志
func GetLogByOrderID ¶
func GetLogByOrderID(args *ArgsGetLogByOrderID) (data FieldsLog, err error)
GetLogByOrderID 查询指定订单抽成
func GetLogList ¶
func GetLogList(args *ArgsGetLogList) (dataList []FieldsLog, dataCount int64, err error)
GetLogList 获取日志
Click to show internal directories.
Click to hide internal directories.