Created
November 23, 2022 07:31
-
-
Save wubin1989/b3de5d9c03d5a8d9d5aceba90cd9f742 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Generated by go-doudou v2.0.3. | |
* You can edit it as your need. | |
*/ | |
package service | |
import ( | |
"context" | |
"go-doudou-tutorials/go-stats/config" | |
pb "go-doudou-tutorials/go-stats/transport/grpc" | |
"go-doudou-tutorials/go-stats/vo" | |
"github.com/brianvoe/gofakeit/v6" | |
) | |
var _ GoStats = (*GoStatsImpl)(nil) | |
var _ pb.GoStatsServiceServer = (*GoStatsImpl)(nil) | |
type GoStatsImpl struct { | |
pb.UnimplementedGoStatsServiceServer | |
conf *config.Config | |
} | |
func (receiver *GoStatsImpl) LargestRemainderRpc(ctx context.Context, request *pb.PercentageReqVo) (*pb.LargestRemainderRpcResponse, error) { | |
//TODO implement me | |
panic("implement me") | |
} | |
func NewGoStats(conf *config.Config) *GoStatsImpl { | |
return &GoStatsImpl{ | |
conf: conf, | |
} | |
} | |
func (receiver *GoStatsImpl) LargestRemainder(ctx context.Context, payload vo.PercentageReqVo) (data []vo.PercentageRespVo, err error) { | |
var _result struct { | |
Data []vo.PercentageRespVo | |
} | |
_ = gofakeit.Struct(&_result) | |
return _result.Data, nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment