You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
727 B
22 lines
727 B
package user
|
|
|
|
import (
|
|
"github.com/golangkit/formatime"
|
|
"github.com/shopspring/decimal"
|
|
)
|
|
|
|
type RecookUserBenefit struct {
|
|
ID int64 `gorm:"column:id" json:"id"`
|
|
UserId uint `gorm:"column:user_id" json:"userId"`
|
|
Period formatime.Date `gorm:"column:period" json:"period"`
|
|
Percent decimal.Decimal `gorm:"column:percent" json:"percent"`
|
|
Amount decimal.Decimal `gorm:"column:amount" json:"amount"`
|
|
Income decimal.Decimal `gorm:"column:income" json:"income"`
|
|
CreatedAt formatime.Second `gorm:"column:created_at" json:"createdAt"`
|
|
}
|
|
|
|
// TableName sets the insert table name for this struct type
|
|
func (r *RecookUserBenefit) TableName() string {
|
|
return "recook_user_benefit"
|
|
}
|