xiaoyong931011
2022-05-27 5684bf988ca723a054ee83628eac5da5c0a687a7
src/main/java/com/xcong/farmer/cms/modules/system/Controller/AdminCommonController.java
@@ -18,10 +18,7 @@
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.Authentication;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.*;
import javax.annotation.Resource;
import javax.servlet.http.HttpServletRequest;
@@ -52,4 +49,14 @@
        return iCommonService.login(adminLoginDto);
    }
    /**
     * 用户退出登录
     * @return
     */
    @ApiOperation(value="用户退出登录", notes="用户退出登录")
    @GetMapping(value = "/Logout/{id}")
    public Result  memberLogout(@PathVariable(value = "id") Long id) {
        return iCommonService.memberLogout(id);
    }
}