Browse Source

一个橘子

one_orenge
huangjiajun 7 months ago
parent
commit
db6b066e20
5 changed files with 8 additions and 1 deletions
  1. +2
    -0
      app/db/db_money_reward.go
  2. +2
    -0
      app/db/model/money_reward.go
  3. +2
    -0
      app/db/model/user_extend_total.go
  4. +1
    -1
      consume/md/consume_key.go
  5. +1
    -0
      consume/md/md_canal_user_money.go

+ 2
- 0
app/db/db_money_reward.go View File

@@ -7,6 +7,8 @@ import (
"xorm.io/xorm"
)

//

func GetMoneyReward(eg *xorm.Engine, uid, date, month string) *model.MoneyReward {
var data model.MoneyReward
get, err := eg.Where("uid=? and date=?", uid, date).Get(&data)


+ 2
- 0
app/db/model/money_reward.go View File

@@ -4,6 +4,8 @@ import (
"time"
)

//

type MoneyReward struct {
Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
Uid int `json:"uid" xorm:"INT(11)"`


+ 2
- 0
app/db/model/user_extend_total.go View File

@@ -1,5 +1,7 @@
package model

//

type UserExtendTotal struct {
Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
Uid int `json:"uid" xorm:"default 0 INT(11)"`


+ 1
- 1
consume/md/consume_key.go View File

@@ -435,7 +435,7 @@ var RabbitMqQueueKeyList = []*MqQueue{
ConsumeFunName: "WithdrawConsume",
},
{
ExchangeName: "canal.topic",
ExchangeName: "canal.topic", //
Name: "canal_fin_user_flow",
Type: TopicQueueType,
IsPersistent: false,


+ 1
- 0
consume/md/md_canal_user_money.go View File

@@ -24,6 +24,7 @@ type CanalUserMoney struct {
UpdateAt string `json:"update_at" xorm:"updated not null default CURRENT_TIMESTAMP comment('更新时间') TIMESTAMP"`
}

//
type CanalUserMoneyMessage[T any] struct {
Data []T `json:"data"`
Database string `json:"database"`


Loading…
Cancel
Save