Browse Source

update

tags/v0.0.2
dengbiao 1 month ago
parent
commit
bfad0a306c
3 changed files with 27 additions and 0 deletions
  1. +5
    -0
      src/dao/egg_energy_price_dao.go
  2. +14
    -0
      src/implement/egg_energy_price_implement.go
  3. +8
    -0
      src/model/egg_energy_price.go

+ 5
- 0
src/dao/egg_energy_price_dao.go View File

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

type EggEnergyPriceDao interface {
//TODO:: You can add specific method definitions here
}

+ 14
- 0
src/implement/egg_energy_price_implement.go View File

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

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

func NewEggEnergyPriceDb(engine *xorm.Engine) dao.EggEnergyPriceDao {
return &EggEnergyPriceDb{Db: engine}
}

type EggEnergyPriceDb struct {
Db *xorm.Engine
}

+ 8
- 0
src/model/egg_energy_price.go View File

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

type EggEnergyPrice struct {
Id int64 `json:"id" xorm:"pk autoincr BIGINT(20)"`
Price string `json:"price" xorm:"not null default 0.0000000000 comment('价格') DECIMAL(28,10)"`
Date string `json:"date" xorm:"not null default '0000-00-00' comment('日期') CHAR(50)"`
Hour string `json:"hour" xorm:"not null default '00' comment('小时') CHAR(50)"`
}

Loading…
Cancel
Save