|
|
|
@ -16,7 +16,7 @@ type Args struct { |
|
|
|
|
|
|
|
// 返回的参数
|
|
|
|
type Reply struct { |
|
|
|
FilePath string `json:"file_path"` |
|
|
|
Redata string |
|
|
|
} |
|
|
|
|
|
|
|
// 返回的json数据
|
|
|
|
@ -78,7 +78,8 @@ func (f *FileRpc) GetFilePath(args *Args, replay *Reply) error { |
|
|
|
logger.Error("转换为json字符串出错", zap.Error(err)) |
|
|
|
return err |
|
|
|
} |
|
|
|
replay.FilePath = string(jsonStr) |
|
|
|
// fmt.Printf("jsonStr: %s\n", jsonStr)
|
|
|
|
replay.Redata = string(jsonStr) |
|
|
|
|
|
|
|
return nil |
|
|
|
} |
|
|
|
|