Kaynağa Gözat

update

master
dengbiao 1 hafta önce
ebeveyn
işleme
70519d0b03
3 değiştirilmiş dosya ile 53 ekleme ve 0 silme
  1. +7
    -0
      src/dao/egg_energy_user_egg_index_weight_dao.go
  2. +25
    -0
      src/implement/egg_energy_user_egg_index_weight_implement.go
  3. +21
    -0
      src/model/egg_energy_user_egg_index_weight.go

+ 7
- 0
src/dao/egg_energy_user_egg_index_weight_dao.go Dosyayı Görüntüle

@@ -0,0 +1,7 @@
package dao

import "code.fnuoos.com/EggPlanet/egg_models.git/src/model"

type EggEnergyUserEggIndexWeightDao interface {
EggEnergyUserEggIndexWeightGet() (*model.EggEnergyUserEggIndexWeight, bool, error)
}

+ 25
- 0
src/implement/egg_energy_user_egg_index_weight_implement.go Dosyayı Görüntüle

@@ -0,0 +1,25 @@
package implement

import (
"code.fnuoos.com/EggPlanet/egg_models.git/src/dao"
"code.fnuoos.com/EggPlanet/egg_models.git/src/model"
zhios_order_relate_logx "code.fnuoos.com/EggPlanet/egg_models.git/utils/logx"
"xorm.io/xorm"
)

func NewEggEnergyUserEggIndexWeightDb(engine *xorm.Engine) dao.EggEnergyUserEggIndexWeightDao {
return &EggEnergyUserEggIndexWeightDb{Db: engine}
}

type EggEnergyUserEggIndexWeightDb struct {
Db *xorm.Engine
}

func (e EggEnergyUserEggIndexWeightDb) EggEnergyUserEggIndexWeightGet() (*model.EggEnergyUserEggIndexWeight, bool, error) {
var m model.EggEnergyUserEggIndexWeight
exist, err := e.Db.Desc("id").Get(&m)
if err != nil {
return nil, false, zhios_order_relate_logx.Error(err.Error())
}
return &m, exist, nil
}

+ 21
- 0
src/model/egg_energy_user_egg_index_weight.go Dosyayı Görüntüle

@@ -0,0 +1,21 @@
package model

type EggEnergyUserEggIndexWeight struct {
Id int64 `json:"id" xorm:"pk autoincr BIGINT(20)"`
Ecpm string `json:"ecpm" xorm:"not null default 0.000000000000 comment('ecpm') DECIMAL(20,12)"`
InviteUserNums string `json:"invite_user_nums" xorm:"not null comment('拉新人数') DECIMAL(20,12)"`
TeamActivityNums string `json:"team_activity_nums" xorm:"not null comment('团队活跃次数') DECIMAL(20,12)"`
SignInNums string `json:"sign_in_nums" xorm:"not null comment('签到次数') DECIMAL(20,12)"`
ImActivityNums string `json:"im_activity_nums" xorm:"not null comment('im活跃次数') DECIMAL(20,12)"`
SendRedPackageNums string `json:"send_red_package_nums" xorm:"not null comment('发红包次数') DECIMAL(20,12)"`
EggEnergyExchangeAccountBalance string `json:"egg_energy_exchange_account_balance" xorm:"not null comment('蛋蛋能量兑换余额数量') DECIMAL(20,12)"`
AccountBalanceExchangeEggEnergyNums string `json:"account_balance_exchange_egg_energy_nums" xorm:"not null comment('余额兑换蛋蛋能量数量') DECIMAL(20,12)"`
SendCircleOfFriendNums string `json:"send_circle_of_friend_nums" xorm:"not null comment('发朋友圈次数') DECIMAL(20,12)"`
ForumCommentsNums string `json:"forum_comments_nums" xorm:"not null comment('论坛评论次数') DECIMAL(20,12)"`
CollegeLearningNums string `json:"college_learning_nums" xorm:"not null comment('学院学习次数') DECIMAL(20,12)"`
ViolateNums string `json:"violate_nums" xorm:"not null comment('违规次数') DECIMAL(20,12)"`
BrowseInterfaceNums string `json:"browse_interface_nums" xorm:"not null comment('浏览界面次数') DECIMAL(20,12)"`
PersonAddActivityValue string `json:"person_add_activity_value" xorm:"not null comment('个人活跃积分') DECIMAL(20,12)"`
CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"`
UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"`
}

Yükleniyor…
İptal
Kaydet