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

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;
import com.ruoyi.common.annotation.Anonymous;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.modules.mall.service.IMallConfigService;

/**
 * C 端 · 商城公共配置
 */
@RestController
@RequestMapping("/api/mall")
public class MallConfigAppController extends BaseController
{
    @Autowired
    private IMallConfigService mallConfigService;

    @Anonymous
    @GetMapping("/config")
    public AjaxResult config()
    {
        return success(mallConfigService.getForApp());
    }
}
