parent
566c2710eb
commit
f87953466f
@ -0,0 +1,33 @@
|
||||
package com.macro.mall.controller;
|
||||
|
||||
import com.macro.mall.dto.CommonResult;
|
||||
import com.macro.mall.model.UmsMemberLevel;
|
||||
import com.macro.mall.service.UmsMemberLevelService;
|
||||
import io.swagger.annotations.Api;
|
||||
import io.swagger.annotations.ApiOperation;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMethod;
|
||||
import org.springframework.web.bind.annotation.RequestParam;
|
||||
import org.springframework.web.bind.annotation.ResponseBody;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 会员等级管理Controller
|
||||
*/
|
||||
@Controller
|
||||
@Api(tags = "UmsMemberLevelController",description = "会员等级管理")
|
||||
@RequestMapping("/memberLevel")
|
||||
public class UmsMemberLevelController {
|
||||
@Autowired
|
||||
private UmsMemberLevelService memberLevelService;//会员等级服务
|
||||
@RequestMapping(value = "/list",method = RequestMethod.GET)
|
||||
@ApiOperation("查询所有会员等级")
|
||||
@ResponseBody
|
||||
public Object list(@RequestParam("defaultStatus") Integer defaultStatus){
|
||||
List<UmsMemberLevel> memberLevelList = memberLevelService.list(defaultStatus);
|
||||
return new CommonResult().success(memberLevelList);
|
||||
}
|
||||
}
|
Loading…
Reference in new issue