|
@@ -5,6 +5,7 @@ import com.yonge.cooleshow.common.controller.BaseController;
|
|
|
import com.yonge.cooleshow.common.entity.HttpResponseResult;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.util.CollectionUtils;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -24,13 +25,16 @@ public class SysUserController extends BaseController {
|
|
|
/**
|
|
|
* 账号注销校验
|
|
|
*/
|
|
|
- @PostMapping("/sysUser/logoffCheck")
|
|
|
+ @PostMapping("/logoffCheck")
|
|
|
HttpResponseResult<List<String>> accountLogoffCheck(@RequestParam("phone") String phone) {
|
|
|
List<String> strings = sysUserService.accountLogoffCheck(phone);
|
|
|
- return HttpResponseResult.succeed(strings);
|
|
|
+ if (!CollectionUtils.isEmpty(strings)) {
|
|
|
+ return HttpResponseResult.succeed(strings);
|
|
|
+ }
|
|
|
+ return HttpResponseResult.succeed();
|
|
|
}
|
|
|
|
|
|
- @PostMapping("/sysUser/logoffQuitImGroup")
|
|
|
+ @PostMapping("/logoffQuitImGroup")
|
|
|
HttpResponseResult<Boolean> logoffQuitImGroup(@RequestParam("phone") String phone){
|
|
|
sysUserService.logoffQuitImGroup(phone);
|
|
|
return HttpResponseResult.succeed(true);
|