This commit is contained in:
ran.shang
2026-03-04 16:54:26 +08:00
parent bb9cd2cf52
commit e025b918d9
9 changed files with 10 additions and 10 deletions

View File

@@ -26,14 +26,14 @@ public class AnonFileController {
private FileService fileService;
@ApiOperation("根据code下载文件")
@GetMapping("/anon/file/download/{fileCode}")
@GetMapping("/file/download/{fileCode}")
public void download(@PathVariable String fileCode, HttpServletRequest request,
HttpServletResponse response) throws IOException {
fileService.download(fileCode, request, response, Boolean.FALSE);
}
@ApiOperation("根据code预览文件")
@GetMapping("/anon/file/display/{fileCode}")
@GetMapping("/file/display/{fileCode}")
public void display(@PathVariable String fileCode, HttpServletRequest request,
HttpServletResponse response) throws IOException {
fileService.download(fileCode, request, response, Boolean.TRUE);

View File

@@ -36,7 +36,7 @@ public class ShareUserFileController {
return AlitaResult.success(shareUserFileService.create(createDTO));
}
@GetMapping("/anon/share_user_file/{id}")
@GetMapping("share_user_file/{id}")
@ApiOperation("匿名查询分享文件")
public AlitaResult<List<UserFileDTO>> list(@PathVariable Long id, @RequestParam String accessCode, @RequestParam(required = false) Long parentId) {
return AlitaResult.success(shareUserFileService.list(id, accessCode, parentId));

View File

@@ -16,7 +16,7 @@ import java.util.List;
/**
* @author sr on 2022-01-06
*/
@RestController
//@RestController
@Api(tags = "授权明细入口")
public class AuthDetailEntrypointController {

View File

@@ -18,7 +18,7 @@ import com.senmesh.usercenter.auth.wechat.service.WechatService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@RestController
//@RestController
@Api(tags = "微信操作")
public class UcWechatController {

View File

@@ -31,7 +31,7 @@ public class SmsController {
return AlitaResult.success();
}
@PostMapping("anon/sms/send")
// @PostMapping("anon/sms/send")
@ApiOperation("获取验证码-不同类型")
public AlitaResult<Void> sms(@Validated @RequestBody PhoneCodeSmsDTO phoneCodeSmsDTO) {
PhoneCodeUtils.send(phoneCodeSmsDTO);

View File

@@ -26,7 +26,7 @@ import io.swagger.annotations.ApiOperation;
/**
* @author sr on 2021-05-24
*/
@RestController
//@RestController
@RequestMapping("/anon/feedback")
@Api(tags = "反馈表")
public class FeedbackController {

View File

@@ -26,7 +26,7 @@ import java.util.Set;
* @since 2021-01-21
*/
@Api(tags = "标签关系信息")
@RestController
//@RestController
@RequestMapping("/anon/tag_relationship")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class AnonTagRelationshipController {

View File

@@ -205,7 +205,7 @@ public class UserController {
}
@ApiOperation("获取当前登录人信息(机构用户)")
@GetMapping("anon/user/info")
@GetMapping("user/info")
public AlitaResult<UserInfoDTO> getLoginUserInfo() {
return AlitaResult.success(userService.findUserInfo(UserContextHolder.getLoginUserId(),
UserContextHolder.getLoginOrgId()));

View File

@@ -13,7 +13,7 @@ import com.senmesh.usercenter.user.login.service.UserLoginService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
@RestController
//@RestController
@Api(tags = "用户登录")
public class UserLoginController {