package com.doumee.api.web; 
 | 
  
 | 
import com.doumee.core.annotation.LoginRequired; 
 | 
import com.doumee.core.annotation.trace.Trace; 
 | 
import com.doumee.core.model.ApiResponse; 
 | 
import com.doumee.dao.business.model.Category; 
 | 
import com.doumee.dao.vo.AccountResponse; 
 | 
import com.doumee.service.business.CategoryService; 
 | 
import io.swagger.annotations.Api; 
 | 
import io.swagger.annotations.ApiImplicitParam; 
 | 
import io.swagger.annotations.ApiImplicitParams; 
 | 
import io.swagger.annotations.ApiOperation; 
 | 
import lombok.extern.slf4j.Slf4j; 
 | 
import org.springframework.beans.factory.annotation.Autowired; 
 | 
import org.springframework.web.bind.annotation.GetMapping; 
 | 
import org.springframework.web.bind.annotation.RequestMapping; 
 | 
import org.springframework.web.bind.annotation.RequestParam; 
 | 
import org.springframework.web.bind.annotation.RestController; 
 | 
  
 | 
import java.util.List; 
 | 
  
 | 
/** 
 | 
 * Created by IntelliJ IDEA. 
 | 
 * 
 | 
 * @Author : Rk 
 | 
 * @create 2025/7/15 15:49 
 | 
 */ 
 | 
@Api(tags = "配置类接口") 
 | 
@Trace(exclude = true) 
 | 
@RestController 
 | 
@RequestMapping("/web/orders") 
 | 
@Slf4j 
 | 
public class ConfigApi extends ApiController{ 
 | 
  
 | 
    @Autowired 
 | 
    private CategoryService categoryService; 
 | 
  
 | 
    @LoginRequired 
 | 
    @ApiOperation(value = "获取分类列表", notes = "小程序端") 
 | 
    @GetMapping("/getCategoryList") 
 | 
    @ApiImplicitParams({ 
 | 
            @ApiImplicitParam(paramType = "query", dataType = "Integer", name = "type", value = "类型:0=品种配置;1=车辆类型配置;2=餐标配置;3=手续费配置;", required = true) 
 | 
    }) 
 | 
    public ApiResponse<List<Category>> getCategoryList(@RequestParam Integer type) { 
 | 
        return  ApiResponse.success("操作成功",categoryService.getCategoryList(type)); 
 | 
    } 
 | 
  
 | 
  
 | 
} 
 |