You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
633 B
Go
30 lines
633 B
Go
3 years ago
|
// Code generated by goctl. DO NOT EDIT!
|
||
|
// Source: gift.proto
|
||
|
|
||
|
package server
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"live-service/app/gift/rpc/internal/logic"
|
||
|
"live-service/app/gift/rpc/internal/svc"
|
||
|
"live-service/app/gift/rpc/pb"
|
||
|
)
|
||
|
|
||
|
type GiftServer struct {
|
||
|
svcCtx *svc.ServiceContext
|
||
|
pb.UnimplementedGiftServer
|
||
|
}
|
||
|
|
||
|
func NewGiftServer(svcCtx *svc.ServiceContext) *GiftServer {
|
||
|
return &GiftServer{
|
||
|
svcCtx: svcCtx,
|
||
|
}
|
||
|
}
|
||
|
|
||
|
// collectGift 收集礼物,仅作为收集使用
|
||
|
func (s *GiftServer) CollectGift(ctx context.Context, in *pb.CollectGift) (*pb.Empty, error) {
|
||
|
l := logic.NewCollectGiftLogic(ctx, s.svcCtx)
|
||
|
return l.CollectGift(in)
|
||
|
}
|