package com.ruoyi.web.modules.mall.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.modules.mall.service.IMallConfigService;

/**
 * 商家 · 发品页商城设置只读提示
 */
@RestController
@RequestMapping("/agri/mallSetting")
public class MallSettingEntryController extends BaseController
{
    @Autowired
    private IMallConfigService mallConfigService;

    @PreAuthorize("@ss.hasPermi('agri:seller:goods:list')")
    @GetMapping("/entryHints")
    public AjaxResult entryHints()
    {
        return success(mallConfigService.getEntryHints());
    }
}
