FinancePhysicalPay

package
v5.2.18 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2024 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckPhysicalByFrom

func CheckPhysicalByFrom(args *ArgsGetPhysicalByFrom) (err error)

CheckPhysicalByFrom 检查标的物是否定义过

func CreateLog

func CreateLog(args *ArgsCreateLog) (newLogIDs pq.Int64Array, err error)

CreateLog 创建新的请求

func DeletePhysical

func DeletePhysical(args *ArgsDeletePhysical) (err error)

DeletePhysical 删除实物

func GetPhysicalMoreNames

func GetPhysicalMoreNames(args *ArgsGetPhysicalMore) (dataList map[int64]string, err error)

GetPhysicalMoreNames 获取多个实物配置

func UpdatePhysical

func UpdatePhysical(args *ArgsUpdatePhysical) (err error)

UpdatePhysical 修改实物

Types

type ArgsCreateLog

type ArgsCreateLog struct {
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID" check:"id"`
	//服务用户ID
	UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"`
	//支付分发渠道
	// order 订单 / tms 配送 / housekeeping 家政服务
	System string `db:"system" json:"system" check:"mark"`
	//置换数量
	Data []ArgsCreateLogData `json:"data"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

ArgsCreateLog 创建新的请求参数

type ArgsCreateLogData

type ArgsCreateLogData struct {
	//给予标的物数量
	PhysicalCount int64 `db:"physical_count" json:"physicalCount" check:"int64Than0"`
	//货物来源标的物
	// 如果没有标的物ID,则通过此数据获取配置;否则会报错
	BindFrom CoreSQLFrom.FieldsFrom `db:"bind_from" json:"bindFrom"`
	//置换商品的数量
	BindCount int64 `db:"bind_count" json:"bindCount" check:"int64Than0"`
}

type ArgsCreatePhysical

type ArgsCreatePhysical struct {
	//组织ID
	// 用于检查
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//名称
	Name string `db:"name" json:"name" check:"name"`
	//可用的来源标的物
	BindFrom CoreSQLFrom.FieldsFrom `db:"bind_from" json:"bindFrom"`
	//置换一件商品需对应几个标的物
	NeedCount int64 `db:"need_count" json:"needCount" check:"int64Than0"`
	//标的物市场总投放量限制
	LimitCount int64 `db:"limit_count" json:"limitCount" check:"int64Than0"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

ArgsCreatePhysical 创建新的实物参数

type ArgsDeletePhysical

type ArgsDeletePhysical struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// 用于检查
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
}

ArgsDeletePhysical 删除实物参数

type ArgsGetLogList

type ArgsGetLogList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	// -1 跳过
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//成员ID
	BindID int64 `db:"bind_id" json:"bindID" check:"id" empty:"true"`
	//服务用户ID
	UserID int64 `db:"user_id" json:"userID" check:"id" empty:"true"`
	//支付分发渠道
	// order 订单 / tms 配送 / housekeeping 家政服务
	System string `db:"system" json:"system" check:"mark" empty:"true"`
	//标的物
	PhysicalID int64 `db:"physical_id" json:"physicalID" check:"id" empty:"true"`
	//时间范围
	// 部分统计支持
	TimeBetween CoreSQLTime.DataCoreTime `json:"timeBetween"`
}

ArgsGetLogList 获取请求列表参数

type ArgsGetPhysicalByFrom

type ArgsGetPhysicalByFrom struct {
	//组织ID
	// 用于检查
	OrgID int64 `db:"org_id" json:"orgID" check:"id"`
	//可用的来源标的物
	BindFrom CoreSQLFrom.FieldsFrom `db:"bind_from" json:"bindFrom"`
}

ArgsGetPhysicalByFrom 获取指定来源的数据参数

type ArgsGetPhysicalID

type ArgsGetPhysicalID struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// 用于检查
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
}

ArgsGetPhysicalID 获取指定实物参数

type ArgsGetPhysicalList

type ArgsGetPhysicalList struct {
	//分页
	Pages CoreSQLPages.ArgsDataList `json:"pages"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//是否删除
	IsRemove bool `db:"is_remove" json:"isRemove" check:"bool"`
	//搜索
	Search string `json:"search" check:"search" empty:"true"`
}

ArgsGetPhysicalList 获取实物列表参数

type ArgsGetPhysicalMore

type ArgsGetPhysicalMore struct {
	//ID列
	IDs pq.Int64Array `json:"ids"`
	//组织ID
	// 用于检查
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//是否包含删除数据
	HaveRemove bool `json:"haveRemove"`
}

ArgsGetPhysicalMore 获取多个实物配置参数

type ArgsUpdatePhysical

type ArgsUpdatePhysical struct {
	//ID
	ID int64 `db:"id" json:"id" check:"id"`
	//组织ID
	// 用于检查
	OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"`
	//名称
	Name string `db:"name" json:"name" check:"name"`
	//置换一件商品需对应几个标的物
	NeedCount int64 `db:"need_count" json:"needCount" check:"int64Than0"`
	//标的物市场总投放量限制
	LimitCount int64 `db:"limit_count" json:"limitCount" check:"int64Than0"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

ArgsUpdatePhysical 修改实物参数

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"`
	//配送人员
	BindID int64 `db:"bind_id" json:"bindID"`
	//用户
	UserID int64 `db:"user_id" json:"userID"`
	//支付分发渠道
	// order 订单 / tms 配送 / housekeeping 家政服务
	System string `db:"system" json:"system"`
	//标的物
	PhysicalID int64 `db:"physical_id" json:"physicalID"`
	//给予标的物数量
	PhysicalCount int64 `db:"physical_count" json:"physicalCount"`
	//货物来源标的物
	BindFrom CoreSQLFrom.FieldsFrom `db:"bind_from" json:"bindFrom"`
	//置换商品的数量
	BindCount int64 `db:"bind_count" json:"bindCount"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

FieldsLog 请求记录

func GetLogList

func GetLogList(args *ArgsGetLogList) (dataList []FieldsLog, dataCount int64, err error)

GetLogList 获取请求列表

type FieldsPhysical

type FieldsPhysical struct {
	//ID
	ID int64 `db:"id" json:"id"`
	//创建时间
	CreateAt time.Time `db:"create_at" json:"createAt"`
	//更新时间
	UpdateAt time.Time `db:"update_at" json:"updateAt"`
	//删除时间
	DeleteAt time.Time `db:"delete_at" json:"deleteAt"`
	//组织ID
	OrgID int64 `db:"org_id" json:"orgID"`
	//名称
	Name string `db:"name" json:"name"`
	//可用的来源标的物
	BindFrom CoreSQLFrom.FieldsFrom `db:"bind_from" json:"bindFrom"`
	//置换一件商品需对应几个标的物
	NeedCount int64 `db:"need_count" json:"needCount"`
	//标的物市场总投放量限制
	LimitCount int64 `db:"limit_count" json:"limitCount"`
	//已经投放的数量
	TakeCount int64 `db:"take_count" json:"takeCount"`
	//扩展参数
	Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"`
}

FieldsPhysical 实物标的物

func CreatePhysical

func CreatePhysical(args *ArgsCreatePhysical) (data FieldsPhysical, err error)

CreatePhysical 创建新的实物

func GetPhysicalByFrom

func GetPhysicalByFrom(args *ArgsGetPhysicalByFrom) (data FieldsPhysical, err error)

GetPhysicalByFrom 获取指定来源的数据

func GetPhysicalID

func GetPhysicalID(args *ArgsGetPhysicalID) (data FieldsPhysical, err error)

GetPhysicalID 获取指定实物

func GetPhysicalList

func GetPhysicalList(args *ArgsGetPhysicalList) (dataList []FieldsPhysical, dataCount int64, err error)

GetPhysicalList 获取实物列表

Jump to

Keyboard shortcuts

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