Documentation ¶
Index ¶
- func CreateLog(args *ArgsCreateLog) (errCode string, err error)
- func DeleteConditions(args *ArgsDeleteConditions) (err error)
- func UpdateConditions(args *ArgsUpdateConditions) (err error)
- type ArgsCreateConditions
- type ArgsCreateLog
- type ArgsDeleteConditions
- type ArgsGetConditionsList
- type ArgsUpdateConditions
- type FieldsConditions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteConditions ¶
func DeleteConditions(args *ArgsDeleteConditions) (err error)
DeleteConditions 删除条件
func UpdateConditions ¶
func UpdateConditions(args *ArgsUpdateConditions) (err error)
UpdateConditions 修改条件
Types ¶
type ArgsCreateConditions ¶
type ArgsCreateConditions struct { //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //名称 Name string `db:"name" json:"name" check:"title" min:"1" max:"300"` //赠礼配置ID ConfigID int64 `db:"config_id" json:"configID" check:"id"` //商品ID MallProductID int64 `db:"mall_product_id" json:"mallProductID" check:"id" empty:"true"` //商品分类 SortID int64 `db:"sort_id" json:"sortID" check:"id" empty:"true"` //商品标签 Tag int64 `db:"tag" json:"tag" check:"id" empty:"true"` //订单的最小金额 MinPrice int64 `db:"min_price" json:"minPrice" check:"price" empty:"true"` //扩展参数 Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"` }
ArgsCreateConditions 创建条件参数
type ArgsCreateLog ¶
type ArgsCreateLog struct { //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //奖励的用户ID UserID int64 `db:"user_id" json:"userID" check:"id"` //推荐人用户ID ReferrerUserID int64 `db:"referrer_user_id" json:"referrerUserID" check:"id" empty:"true"` //推荐成员ID ReferrerBindID int64 `db:"referrer_bind_id" json:"referrerBindID" check:"id" empty:"true"` //交易的金额 // 用户发生交易的总金额 PriceTotal int64 `db:"price_total" json:"priceTotal" check:"price" empty:"true"` //商品ID MallProductID pq.Int64Array `db:"mall_product_id" json:"mallProductID" check:"ids" empty:"true"` //商品分类 SortID pq.Int64Array `db:"sort_id" json:"sortID" check:"ids" empty:"true"` //商品标签 Tag pq.Int64Array `db:"tag" json:"tag" check:"ids" empty:"true"` }
ArgsCreateLog 创建新的请求参数
type ArgsDeleteConditions ¶
type ArgsDeleteConditions struct { //ID ID int64 `db:"id" json:"id" check:"id"` //组织ID // 可选 OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` }
ArgsDeleteConditions 删除条件参数
type ArgsGetConditionsList ¶
type ArgsGetConditionsList struct { //分页 Pages CoreSQLPages.ArgsDataList `json:"pages"` //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id" empty:"true"` //关联的奖励 ConfigID int64 `db:"config_id" json:"configID" check:"id" empty:"true"` //是否被删除 IsRemove bool `db:"is_remove" json:"isRemove" check:"bool" empty:"true"` //搜索 Search string `json:"search" check:"search" empty:"true"` }
ArgsGetConditionsList 获取条件列表参数
type ArgsUpdateConditions ¶
type ArgsUpdateConditions 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:"title" min:"1" max:"300"` //赠礼配置ID ConfigID int64 `db:"config_id" json:"configID" check:"id"` //商品ID MallProductID int64 `db:"mall_product_id" json:"mallProductID" check:"id" empty:"true"` //商品分类 SortID int64 `db:"sort_id" json:"sortID" check:"id" empty:"true"` //商品标签 Tag int64 `db:"tag" json:"tag" check:"id" empty:"true"` //订单的最小金额 MinPrice int64 `db:"min_price" json:"minPrice" check:"price" empty:"true"` //扩展参数 Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"` }
ArgsUpdateConditions 修改条件参数
type FieldsConditions ¶
type FieldsConditions 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"` //赠礼配置ID ConfigID int64 `db:"config_id" json:"configID"` //商品ID MallProductID int64 `db:"mall_product_id" json:"mallProductID"` //商品分类 SortID int64 `db:"sort_id" json:"sortID"` //商品标签 Tag int64 `db:"tag" json:"tag"` //订单的最小金额 MinPrice int64 `db:"min_price" json:"minPrice"` //扩展参数 Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"` }
FieldsConditions 赠送条件配置
func CreateConditions ¶
func CreateConditions(args *ArgsCreateConditions) (data FieldsConditions, err error)
CreateConditions 创建条件
func GetConditionsList ¶
func GetConditionsList(args *ArgsGetConditionsList) (dataList []FieldsConditions, dataCount int64, err error)
GetConditionsList 获取条件列表
Click to show internal directories.
Click to hide internal directories.