public async Task <UnifyResponseDto> UpdateAsync(long id, [FromBody] CreateUpdateDocDto updateDoc) { await _docService.UpdateAsync(id, updateDoc); return(UnifyResponseDto.Success("编辑文档成功")); }
public async Task <UnifyResponseDto> CreateAsync([FromBody] CreateUpdateDocDto createDoc) { await _docService.CreateAsync(createDoc); return(UnifyResponseDto.Success("新增文档成功")); }