Pārlūkot izejas kodu

update

tags/v0.0.2
dengbiao pirms 1 nedēļas
vecāks
revīzija
bfad0a306c
3 mainītis faili ar 27 papildinājumiem un 0 dzēšanām
  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 Parādīt failu

@@ -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 Parādīt failu

@@ -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 Parādīt failu

@@ -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)"`
}

Notiek ielāde…
Atcelt
Saglabāt