# RevenueSettingController.java

    package cloud.wconnect.rateshop.controller.revenue;

    import cloud.wconnect.commonlib.annotation.ApiId;
    import cloud.wconnect.commonlib.component.SessionContext;
    import cloud.wconnect.rateshop.pojo.vo.rateshop.SettingVO;
    import cloud.wconnect.rateshop.service.rateshop.ISettingService;
    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.RestController;

    /**
     * rateShop功能配置控制层
     *
     * @author lichen
     * @date 2023/6/17
     */
    @RestController
    @RequestMapping("/revenue")
    public class RevenueSettingController {

        @Autowired
        private ISettingService settingService;
        @Autowired
        private SessionContext sessionContext;

        /**
         * 查询资产rateShop功能的设置信息
         *
         * @param property 资产标识
         * @return cloud.wconnect.rateshop.pojo.vo.rateshop.SettingVO
         * @author lichen
         * @date 2023/6/17
         */
        @ApiId(1512)
        @GetMapping("/setting")
        public SettingVO list(String property) {
            int propertyId = sessionContext.getPropertyId(property);
            return settingService.getSettingVO(propertyId);
        }

    }