35 lines
834 B
Go
35 lines
834 B
Go
package model
|
||
|
||
import (
|
||
"context"
|
||
|
||
"mongo.games.com/goserver/core/logger"
|
||
|
||
"mongo.games.com/game/db/proto/lottery"
|
||
)
|
||
|
||
// 竞技馆抽奖记录
|
||
|
||
type Lottery struct {
|
||
Ts int64 // 中奖时间
|
||
SnId int32 // 玩家id
|
||
Name string // 玩家昵称
|
||
Number int64 // 中奖号码
|
||
Award map[int32]int64 // 奖品,key为奖品id,value为奖品数量
|
||
Video string // 视频地址
|
||
}
|
||
|
||
type LotteryServer struct {
|
||
lottery.UnimplementedLotteryServerServer
|
||
}
|
||
|
||
func (l *Lottery) Save(ctx context.Context, req *lottery.SaveReq) (*lottery.SaveRsp, error) {
|
||
logger.Logger.Infof("Lottery Save: %v", req)
|
||
return nil, nil
|
||
}
|
||
|
||
func (l *Lottery) Find(ctx context.Context, req *lottery.FindReq) (*lottery.FindRsp, error) {
|
||
logger.Logger.Infof("Lottery Find: %v", req)
|
||
return nil, nil
|
||
}
|