/* * Copyright (c) 2018-2999 广州市蓝海创新科技有限公司 All rights reserved. * * https://www.mall4j.com/ * * 未经允许,不可做商业用途! * * 版权所有,侵权必究! */ package com.yami.shop.api.controller; import com.yami.shop.bean.model.MarsTranLeve; import com.yami.shop.common.response.ServerResponseEntity; import com.yami.shop.service.MarsTranLeveService; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; import lombok.AllArgsConstructor; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; import javax.annotation.Resource; /** * @author LGH */ @RestController @RequestMapping("/mars/leve") @Tag(name = "寄售模式(交易等级)接口") @AllArgsConstructor public class MarsTranLeveController { @Resource private MarsTranLeveService marsTranLeveService; @GetMapping("/info/{id}") @Operation(summary = "通过等级查询等级范围") @Parameter(name = "id", description = "通过等级查询等级范围" , required = true) public ServerResponseEntity getMarsWantbuyById(@PathVariable("id") Long id) { MarsTranLeve leve = marsTranLeveService.getById(id); return ServerResponseEntity.success(leve); } }