|
@@ -1,9 +1,7 @@
|
|
|
package com.content.controller;
|
|
package com.content.controller;
|
|
|
import com.base.exception.WyMusicException;
|
|
import com.base.exception.WyMusicException;
|
|
|
import com.base.utils.Result;
|
|
import com.base.utils.Result;
|
|
|
-import com.content.config.SecurityUtil;
|
|
|
|
|
import com.content.domain.po.Swipper;
|
|
import com.content.domain.po.Swipper;
|
|
|
-import com.content.service.IShopSwipperService;
|
|
|
|
|
import com.content.service.ISwipperService;
|
|
import com.content.service.ISwipperService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.security.core.context.SecurityContextHolder;
|
|
import org.springframework.security.core.context.SecurityContextHolder;
|
|
@@ -22,21 +20,14 @@ import java.util.List;
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
@RestController
|
|
@RestController
|
|
|
-@RequestMapping("/content/swipper")
|
|
|
|
|
|
|
+@RequestMapping("/content")
|
|
|
public class SwipperController {
|
|
public class SwipperController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ISwipperService swipperService;
|
|
private ISwipperService swipperService;
|
|
|
-
|
|
|
|
|
- @Autowired
|
|
|
|
|
- private IShopSwipperService iShopSwipperService;
|
|
|
|
|
- @GetMapping("/find/recommend")
|
|
|
|
|
|
|
+ @GetMapping("/swipper")
|
|
|
public Result<List<Swipper>> findRecommend(){
|
|
public Result<List<Swipper>> findRecommend(){
|
|
|
return Result.success(swipperService.list());
|
|
return Result.success(swipperService.list());
|
|
|
}
|
|
}
|
|
|
- @GetMapping("/shop")
|
|
|
|
|
- public Result<List<Swipper>> Shop(){
|
|
|
|
|
- return Result.success(iShopSwipperService.list());
|
|
|
|
|
- }
|
|
|
|
|
@GetMapping("/test")
|
|
@GetMapping("/test")
|
|
|
public List<Swipper> test() {
|
|
public List<Swipper> test() {
|
|
|
WyMusicException.cast("账号或密码错误");
|
|
WyMusicException.cast("账号或密码错误");
|