user_medal.go 478 Bytes
Newer Older
kzkzzzz's avatar
kzkzzzz committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package model

import (
	"time"
)

type UserMedal struct {
	CreatedTime time.Time `json:"created_time"` // CreatedTime
	EndTime     time.Time `json:"end_time"`     // 有效截至时间
	Id          int64     `json:"id"`           // id
	MedalId     int       `json:"medal_id"`     // 勋章ID
	UpdatedTime time.Time `json:"updated_time"` // UpdatedTime
	UserId      int64     `json:"user_id"`      // 用户ID
}

func (u *UserMedal) TableName() string {
	return "user_medal"
}