| | |
| | | /// </summary> |
| | | /// <param name="input">创建参数</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpPost] |
| | | public virtual Task<WmsMaterialTypeDto> CreateAsync(WmsMaterialTypeCreateDto input) |
| | | { |
| | |
| | | /// <param name="id">主键ID</param> |
| | | /// <param name="input">更新参数</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpPut] |
| | | [Route("{id}")] |
| | | public virtual Task<WmsMaterialTypeDto> UpdateAsync(Guid id, WmsMaterialTypeUpdateDto input) |
| | |
| | | /// </summary> |
| | | /// <param name="ids">Id集合</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpPost] |
| | | [Route("Clone")] |
| | | public virtual Task<List<WmsMaterialTypeDto>> CloneAsync([FromBody] IEnumerable<Guid> ids) |
| | |
| | | /// </summary> |
| | | /// <param name="id">主键ID</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpDelete] |
| | | [Route("{id}")] |
| | | public virtual Task DeleteAsync(Guid id) |
| | |
| | | UserId = _currentUser.UserId |
| | | }; |
| | | //return _wmsMaterialAppService.DeleteAsync(id,myCurrentUser);//逻辑删除 |
| | | return _wmsMaterialAppService.DeletePermanentlyAsync(id, myCurrentUser);//物理删除 |
| | | return _WmsMaterialTypeAppService.DeletePermanentlyAsync(id, myCurrentUser);//物理删除 |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | /// </summary> |
| | | /// <param name="ids">主键ID集合</param> |
| | | /// <returns></returns> |
| | | //[Authorize] |
| | | [Authorize] |
| | | [HttpDelete] |
| | | public virtual Task DeleteAsync([FromBody] IEnumerable<Guid> ids) |
| | | { |
| | |
| | | UserId = _currentUser.UserId |
| | | }; |
| | | // return _wmsMaterialAppService.DeleteManyAsync(ids,myCurrentUser);//逻辑删除 |
| | | return _wmsMaterialAppService.BatchDeletePermanentlyAsync(ids, myCurrentUser);//物理删除 |
| | | return _WmsMaterialTypeAppService.BatchDeletePermanentlyAsync(ids, myCurrentUser);//物理删除 |
| | | } |
| | | |
| | | /// <summary> |