1
This commit is contained in:
@@ -827,6 +827,19 @@ func UploadImg(filePath, imgType, sourcechnl, isOcr string) (*lakala.UploadImgRe
|
||||
return api.LaKaLaApi.FileUpload(filePath, imgType, sourcechnl, isOcr)
|
||||
}
|
||||
|
||||
// UploadAttachmentImg 分账附件上传
|
||||
func UploadAttachmentImg(orgCode, attType, attExtName, attContext string) (*lakala.AttachmentImgResp, error) {
|
||||
parameter := &lakala.AttachmentImg{
|
||||
Version: "1.0",
|
||||
OrderNo: lakala.GetOrderNumber(8),
|
||||
OrgCode: orgCode,
|
||||
AttType: attType,
|
||||
AttExtName: attExtName,
|
||||
AttContext: attContext,
|
||||
}
|
||||
return api.LaKaLaApi.AttachmentUpload(parameter)
|
||||
}
|
||||
|
||||
//#endregion
|
||||
|
||||
//#region京西数据查询
|
||||
|
||||
@@ -768,6 +768,24 @@ func (c *LaKaLaController) UploadImg() {
|
||||
})
|
||||
}
|
||||
|
||||
// UploadAttachmentImg 图片上传
|
||||
// @Title 图片上传
|
||||
// @Description 图片上传
|
||||
// @Param token header string true "认证token"
|
||||
// @Param orgCode formData string true "机构代码"
|
||||
// @Param attType formData string true "附件类型"
|
||||
// @Param attExtName formData string true "附件扩展名称"
|
||||
// @Param attContext formData string true "附件内容 "
|
||||
// @Success 200 {object} controllers.CallResult
|
||||
// @Failure 200 {object} controllers.CallResult
|
||||
// @router /UploadAttachmentImg [post]
|
||||
func (c *LaKaLaController) UploadAttachmentImg() {
|
||||
c.callUploadAttachmentImg(func(params *tLakalaUploadAttachmentImgParams) (retVal interface{}, errCode string, err error) {
|
||||
retVal, err = lakalaServer.UploadAttachmentImg(params.OrgCode, params.AttType, params.AttExtName, params.AttContext)
|
||||
return
|
||||
})
|
||||
}
|
||||
|
||||
// QueryIncoming 进件查询
|
||||
// @Title 进件查询
|
||||
// @Description 进件查询
|
||||
|
||||
@@ -5068,6 +5068,15 @@ func init() {
|
||||
MethodParams: param.Make(),
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
// lakala附件上传
|
||||
web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:LaKaLaController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:LaKaLaController"],
|
||||
web.ControllerComments{
|
||||
Method: "UploadAttachmentImg",
|
||||
Router: `/UploadAttachmentImg`,
|
||||
AllowHTTPMethods: []string{"post"},
|
||||
MethodParams: param.Make(),
|
||||
Filters: nil,
|
||||
Params: nil})
|
||||
// 进件记录查询
|
||||
web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:LaKaLaController"] = append(web.GlobalControllerRouter["git.rosy.net.cn/jx-callback/controllers:LaKaLaController"],
|
||||
web.ControllerComments{
|
||||
|
||||
Reference in New Issue
Block a user