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.IMerchantEntryAgreementService;

/**
 * C 端商家入驻协议
 */
@RestController
@RequestMapping("/api/merchant/entry")
public class MerchantEntryAgreementAppController extends BaseController
{
    @Autowired
    private IMerchantEntryAgreementService agreementService;

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

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