fix anon
This commit is contained in:
@@ -26,14 +26,14 @@ public class AnonFileController {
|
|||||||
private FileService fileService;
|
private FileService fileService;
|
||||||
|
|
||||||
@ApiOperation("根据code下载文件")
|
@ApiOperation("根据code下载文件")
|
||||||
@GetMapping("/anon/file/download/{fileCode}")
|
@GetMapping("/file/download/{fileCode}")
|
||||||
public void download(@PathVariable String fileCode, HttpServletRequest request,
|
public void download(@PathVariable String fileCode, HttpServletRequest request,
|
||||||
HttpServletResponse response) throws IOException {
|
HttpServletResponse response) throws IOException {
|
||||||
fileService.download(fileCode, request, response, Boolean.FALSE);
|
fileService.download(fileCode, request, response, Boolean.FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("根据code预览文件")
|
@ApiOperation("根据code预览文件")
|
||||||
@GetMapping("/anon/file/display/{fileCode}")
|
@GetMapping("/file/display/{fileCode}")
|
||||||
public void display(@PathVariable String fileCode, HttpServletRequest request,
|
public void display(@PathVariable String fileCode, HttpServletRequest request,
|
||||||
HttpServletResponse response) throws IOException {
|
HttpServletResponse response) throws IOException {
|
||||||
fileService.download(fileCode, request, response, Boolean.TRUE);
|
fileService.download(fileCode, request, response, Boolean.TRUE);
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public class ShareUserFileController {
|
|||||||
return AlitaResult.success(shareUserFileService.create(createDTO));
|
return AlitaResult.success(shareUserFileService.create(createDTO));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/anon/share_user_file/{id}")
|
@GetMapping("share_user_file/{id}")
|
||||||
@ApiOperation("匿名查询分享文件")
|
@ApiOperation("匿名查询分享文件")
|
||||||
public AlitaResult<List<UserFileDTO>> list(@PathVariable Long id, @RequestParam String accessCode, @RequestParam(required = false) Long parentId) {
|
public AlitaResult<List<UserFileDTO>> list(@PathVariable Long id, @RequestParam String accessCode, @RequestParam(required = false) Long parentId) {
|
||||||
return AlitaResult.success(shareUserFileService.list(id, accessCode, parentId));
|
return AlitaResult.success(shareUserFileService.list(id, accessCode, parentId));
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import java.util.List;
|
|||||||
/**
|
/**
|
||||||
* @author sr on 2022-01-06
|
* @author sr on 2022-01-06
|
||||||
*/
|
*/
|
||||||
@RestController
|
//@RestController
|
||||||
@Api(tags = "授权明细入口")
|
@Api(tags = "授权明细入口")
|
||||||
public class AuthDetailEntrypointController {
|
public class AuthDetailEntrypointController {
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ import com.senmesh.usercenter.auth.wechat.service.WechatService;
|
|||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
@RestController
|
//@RestController
|
||||||
@Api(tags = "微信操作")
|
@Api(tags = "微信操作")
|
||||||
public class UcWechatController {
|
public class UcWechatController {
|
||||||
|
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ public class SmsController {
|
|||||||
return AlitaResult.success();
|
return AlitaResult.success();
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("anon/sms/send")
|
// @PostMapping("anon/sms/send")
|
||||||
@ApiOperation("获取验证码-不同类型")
|
@ApiOperation("获取验证码-不同类型")
|
||||||
public AlitaResult<Void> sms(@Validated @RequestBody PhoneCodeSmsDTO phoneCodeSmsDTO) {
|
public AlitaResult<Void> sms(@Validated @RequestBody PhoneCodeSmsDTO phoneCodeSmsDTO) {
|
||||||
PhoneCodeUtils.send(phoneCodeSmsDTO);
|
PhoneCodeUtils.send(phoneCodeSmsDTO);
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import io.swagger.annotations.ApiOperation;
|
|||||||
/**
|
/**
|
||||||
* @author sr on 2021-05-24
|
* @author sr on 2021-05-24
|
||||||
*/
|
*/
|
||||||
@RestController
|
//@RestController
|
||||||
@RequestMapping("/anon/feedback")
|
@RequestMapping("/anon/feedback")
|
||||||
@Api(tags = "反馈表")
|
@Api(tags = "反馈表")
|
||||||
public class FeedbackController {
|
public class FeedbackController {
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ import java.util.Set;
|
|||||||
* @since 2021-01-21
|
* @since 2021-01-21
|
||||||
*/
|
*/
|
||||||
@Api(tags = "标签关系信息")
|
@Api(tags = "标签关系信息")
|
||||||
@RestController
|
//@RestController
|
||||||
@RequestMapping("/anon/tag_relationship")
|
@RequestMapping("/anon/tag_relationship")
|
||||||
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
|
||||||
public class AnonTagRelationshipController {
|
public class AnonTagRelationshipController {
|
||||||
|
|||||||
@@ -205,7 +205,7 @@ public class UserController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@ApiOperation("获取当前登录人信息(机构用户)")
|
@ApiOperation("获取当前登录人信息(机构用户)")
|
||||||
@GetMapping("anon/user/info")
|
@GetMapping("user/info")
|
||||||
public AlitaResult<UserInfoDTO> getLoginUserInfo() {
|
public AlitaResult<UserInfoDTO> getLoginUserInfo() {
|
||||||
return AlitaResult.success(userService.findUserInfo(UserContextHolder.getLoginUserId(),
|
return AlitaResult.success(userService.findUserInfo(UserContextHolder.getLoginUserId(),
|
||||||
UserContextHolder.getLoginOrgId()));
|
UserContextHolder.getLoginOrgId()));
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ import com.senmesh.usercenter.user.login.service.UserLoginService;
|
|||||||
import io.swagger.annotations.Api;
|
import io.swagger.annotations.Api;
|
||||||
import io.swagger.annotations.ApiOperation;
|
import io.swagger.annotations.ApiOperation;
|
||||||
|
|
||||||
@RestController
|
//@RestController
|
||||||
@Api(tags = "用户登录")
|
@Api(tags = "用户登录")
|
||||||
public class UserLoginController {
|
public class UserLoginController {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user