From 558dfece245913560cb9f958c02233c84da381d8 Mon Sep 17 00:00:00 2001 From: shenjiachi Date: Thu, 21 Nov 2024 17:58:18 +0800 Subject: [PATCH] update --- src/dao/egg_energy_team_assistance_dao.go | 5 +++++ .../egg_energy_team_assistance_implement.go | 14 ++++++++++++++ src/model/egg_energy_team_assistance.go | 15 +++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 src/dao/egg_energy_team_assistance_dao.go create mode 100644 src/implement/egg_energy_team_assistance_implement.go create mode 100644 src/model/egg_energy_team_assistance.go diff --git a/src/dao/egg_energy_team_assistance_dao.go b/src/dao/egg_energy_team_assistance_dao.go new file mode 100644 index 0000000..dacbd8a --- /dev/null +++ b/src/dao/egg_energy_team_assistance_dao.go @@ -0,0 +1,5 @@ +package dao + +type EggEnergyTeamAssistanceDao interface { + //TODO:: You can add specific method definitions here +} diff --git a/src/implement/egg_energy_team_assistance_implement.go b/src/implement/egg_energy_team_assistance_implement.go new file mode 100644 index 0000000..98ed395 --- /dev/null +++ b/src/implement/egg_energy_team_assistance_implement.go @@ -0,0 +1,14 @@ +package implement + +import ( + "code.fnuoos.com/EggPlanet/egg_models.git/src/dao" + "xorm.io/xorm" +) + +func NewEggEnergyTeamAssistanceDb(engine *xorm.Engine) dao.EggEnergyTeamAssistanceDao { + return &EggEnergyTeamAssistanceDb{Db: engine} +} + +type EggEnergyTeamAssistanceDb struct { + Db *xorm.Engine +} diff --git a/src/model/egg_energy_team_assistance.go b/src/model/egg_energy_team_assistance.go new file mode 100644 index 0000000..2df255b --- /dev/null +++ b/src/model/egg_energy_team_assistance.go @@ -0,0 +1,15 @@ +package model + +import ( + "time" +) + +type EggEnergyTeamAssistance struct { + Id int64 `json:"id" xorm:"pk autoincr BIGINT(20)"` + Uid int64 `json:"uid" xorm:"not null default 0 comment('用户 ID') BIGINT(20)"` + AssistedNum int `json:"assisted_num" xorm:"not null default 0 comment('助力人数') INT(11)"` + RewardScore string `json:"reward_score" xorm:"not null default 0.00000000 comment('奖励积分数量') DECIMAL(20,8)"` + Date string `json:"date" xorm:"not null default '0000-00-00' comment('日期') CHAR(50)"` + CreateAt time.Time `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"` + UpdateAt time.Time `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"` +}