瀏覽代碼

update

master
shenjiachi 16 小時之前
父節點
當前提交
558dfece24
共有 3 個文件被更改,包括 34 次插入0 次删除
  1. +5
    -0
      src/dao/egg_energy_team_assistance_dao.go
  2. +14
    -0
      src/implement/egg_energy_team_assistance_implement.go
  3. +15
    -0
      src/model/egg_energy_team_assistance.go

+ 5
- 0
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
}

+ 14
- 0
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
}

+ 15
- 0
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"`
}

Loading…
取消
儲存