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"` //是否需要绑定手机号 HavePhone bool `db:"have_phone" json:"havePhone" check:"bool"` //是否需要发生交易 HaveOrder bool `db:"have_order" json:"haveOrder" check:"bool"` //扩展参数 Params CoreSQLConfig.FieldsConfigsType `db:"params" json:"params"` }
ArgsCreateConditions 创建条件参数
type ArgsCreateLog ¶
type ArgsCreateLog struct { //组织ID OrgID int64 `db:"org_id" json:"orgID" check:"id"` //触发的条件ID // 二维码比较特殊,需指定ID才能触发 QrcodeID int64 `db:"qrcode_id" json:"qrcodeID" 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"` }
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"` //是否需要绑定手机号 HavePhone bool `db:"have_phone" json:"havePhone" check:"bool"` //是否需要发生交易 HaveOrder bool `db:"have_order" json:"haveOrder" check:"bool"` //扩展参数 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"` //是否需要绑定手机号 HavePhone bool `db:"have_phone" json:"havePhone"` //是否需要发生交易 HaveOrder bool `db:"have_order" json:"haveOrder"` //扩展参数 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.