Skip to content

Instantly share code, notes, and snippets.

@wubin1989
Created November 23, 2022 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wubin1989/55517a5f4c861ee10c51fc755eb33e9d to your computer and use it in GitHub Desktop.
Save wubin1989/55517a5f4c861ee10c51fc755eb33e9d to your computer and use it in GitHub Desktop.
func (receiver *GoStatsImpl) LargestRemainderRpc(ctx context.Context, request *pb.PercentageReqVo) (*pb.LargestRemainderRpcResponse, error) {
var payload vo.PercentageReqVo
copier.DeepCopy(request, &payload)
data, err := receiver.LargestRemainder(ctx, payload)
if err != nil {
return nil, err
}
var ret pb.LargestRemainderRpcResponse
err = copier.DeepCopy(data, &ret.Data)
if err != nil {
return nil, err
}
return &ret, nil
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment