ly-item/ly-item-service/src/main/java/com/leyou/item/web/SpecController.java
/**
     * Query the specification params
     * @param categoryId
     * @param groupId   specification group id
     * @param searching Whether participate in searching or not
     * @return a collection of the params
     */
Query the specification params
@param categoryId
@param groupId   specification group id
@param searching Whether participate in searching or not
@return a collection of the params
Query the specification params @param categoryId @param groupId specification group id @param searching Whether participate in searching or not @return a collection of the params
@GetMapping("/params")
    public ResponseEntity<List<SpecParamDTO>> querySpecParams(
            @RequestParam(value = "categoryId",required = false) Long categoryId,
            @RequestParam(value = "groupId",required = false)Long groupId,
            @RequestParam(value = "searching",required = false)Boolean searching
    ) {
        List<SpecParamDTO> list = paramService.querySpecParams(categoryId, groupId, searching);
        return ResponseEntity.ok(list);
    }
@ GetMapping ( "/params" ) public ResponseEntity < List < SpecParamDTO > > querySpecParams ( @ RequestParam ( value = "categoryId" , required = false ) Long categoryId , @ RequestParam ( value = "groupId" , required = false ) Long groupId , @ RequestParam ( value = "searching" , required = false ) Boolean searching ) { List < SpecParamDTO > list = paramService . querySpecParams ( categoryId , groupId , searching ) ; return ResponseEntity . ok ( list ) ; }
Query the specification params
 @param categoryId
 @param groupId   specification group id
 @param searching Whether participate in searching or not
 @return a collection of the params
Query the specification params @param categoryId @param groupId specification group id @param searching Whether participate in searching or not @return a collection of the params
//required = false 不能少，否则报错，查不出数据