Commit 0da34a14 authored by 万成波's avatar 万成波

商品查询

parent effcab0d
package com.tangguo.controller;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.tangguo.common.annotation.Log;
import com.tangguo.common.core.controller.BaseController;
import com.tangguo.common.core.domain.AjaxResult;
......@@ -47,9 +48,10 @@ public class BbsPointsGoodsController extends BaseController {
*/
@ApiOperation("获取积分商品详细信息")
@PreAuthorize("@ss.hasPermi('goods:goods:query')")
@GetMapping(value = "/{id}")
public AjaxResult getInfo(@PathVariable("id") Long id) {
return success(bbsPointsGoodsService.getById(id));
@GetMapping(value = "/{code}")
public AjaxResult getInfo(@PathVariable("code") String code) {
BbsPointsGoods dbGoods = this.bbsPointsGoodsService.getByGoodsCode(code);
return success(bbsPointsGoodsService.getById(dbGoods));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment