package com.ruoyi.web.modules.content.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.content.service.IMallServiceAgreementService;

/**
 * C 端商城服务协议
 */
@RestController
@RequestMapping("/api/member/serviceAgreement")
public class MallServiceAgreementAppController extends BaseController
{
    @Autowired
    private IMallServiceAgreementService agreementService;

    @Anonymous
    @GetMapping
    public AjaxResult agreement()
    {
        return success(agreementService.getForApp());
    }

    @Anonymous
    @GetMapping("/status")
    public AjaxResult status()
    {
        return success(agreementService.getStatus());
    }
}
