|
@@ -17,6 +17,7 @@ const OuterReportCallBackApiUrl = "/subject/report/writingCallback"
|
|
|
type OuterReportCallBackRequest struct {
|
|
|
Name string `json:"name"`
|
|
|
ReportId int `json:"reportId"`
|
|
|
+ Abstract string `json:"abstract"`
|
|
|
Url string `json:"url"`
|
|
|
FileType string `json:"fileType"`
|
|
|
FileSize int `json:"fileSize"`
|
|
@@ -30,7 +31,7 @@ type OuterReportCallBackResp struct {
|
|
|
}
|
|
|
|
|
|
// OuterReportCallBack 外部报告回调(提交审批)
|
|
|
-func OuterReportCallBack(outReportId int, title, fileUrl, fileType string) (err error) {
|
|
|
+func OuterReportCallBack(outReportId int, title, abstract, fileUrl, fileType string) (err error) {
|
|
|
var requestUrl, params, respBody string
|
|
|
defer func() {
|
|
|
if err != nil {
|
|
@@ -46,6 +47,7 @@ func OuterReportCallBack(outReportId int, title, fileUrl, fileType string) (err
|
|
|
var req OuterReportCallBackRequest
|
|
|
req.Name = fmt.Sprintf("%s%s", title, fileType)
|
|
|
req.ReportId = outReportId
|
|
|
+ req.Abstract = abstract
|
|
|
req.Url = fileUrl
|
|
|
req.FileType = fileType
|
|
|
b, e := json.Marshal(req)
|