package utils import ( "go_dreamfactory/pb" cfg "go_dreamfactory/sys/configure/structs" ) func ConvertReward(data ...*cfg.Gameatn) (res []*pb.UserAssets) { for _, v := range data { res = append(res, &pb.UserAssets{ A: v.A, T: v.T, N: v.N, }) } return }