package com.ruoyi.shop.controller.console;
|
|
import com.ruoyi.common.core.domain.R;
|
import com.ruoyi.common.security.annotation.InnerAuth;
|
import com.ruoyi.shop.service.shop.ShopService;
|
import com.ruoyi.system.api.domain.poji.activity.ActivityGoods;
|
import com.ruoyi.system.api.domain.poji.shop.Shop;
|
import org.springframework.beans.factory.annotation.Autowired;
|
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 javax.annotation.Resource;
|
|
/**
|
* @author jqs34
|
* @ClassName ShopController
|
* @description: TODO
|
* @date 2023年05月03日
|
* @version: 1.0
|
*/
|
@RestController
|
@RequestMapping("/shop")
|
public class ShopController {
|
|
@Resource
|
private ShopService shopService;
|
|
@InnerAuth
|
@PostMapping("/getShop")
|
public R<Shop> getShop(@RequestBody Long shopId)
|
{
|
Shop shop = shopService.getByShopId(shopId);
|
return R.ok(shop);
|
}
|
|
|
}
|