| | |
| | | * |
| | | * @param taskId 任务ID |
| | | * @param file 文件 |
| | | * @param category 附件分类 |
| | | * @return 结果 |
| | | */ |
| | | public int uploadAttachment(Long taskId, MultipartFile file); |
| | | public int uploadAttachment(Long taskId, MultipartFile file, String category); |
| | | |
| | | /** |
| | | * 从微信mediaId上传任务附件 |
| | | * |
| | | * @param taskId 任务ID |
| | | * @param accessToken 微信AccessToken |
| | | * @param mediaId 微信mediaId |
| | | * @param category 附件分类 |
| | | * @return 结果 |
| | | */ |
| | | public int uploadAttachmentFromWechat(Long taskId, String accessToken, String mediaId, String category); |
| | | |
| | | /** |
| | | * 删除任务附件 |
| | |
| | | public int deleteAttachment(Long attachmentId); |
| | | |
| | | /** |
| | | * 根据ID获取附件详情 |
| | | * |
| | | * @param attachmentId 附件ID |
| | | * @return 附件详情 |
| | | */ |
| | | public SysTaskAttachment getAttachmentById(Long attachmentId); |
| | | |
| | | /** |
| | | * 分配车辆给任务 |
| | | * |
| | | * @param taskId 任务ID |