package org.jeecg.modules.app.controller.agreement;


import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.app.vo.agreement.AppAgreementVORequest;
import org.jeecg.modules.app.vo.agreement.AppAgreementVoResponse;
import org.jeecg.modules.system.app.service.IProtocolService;
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;


/**
 * 意见反馈
 */
@Slf4j
@Tag(name = "app协议相关接口")
@RestController()
@RequestMapping("/app/my/feedback")
public class AppProtocolController {

    @Autowired
    IProtocolService iProtocolService;


    /**
     * 协议查询接口
     * @param appAgreementVORequest
     * @return
     */
    @GetMapping("/findByType")
    @Operation(summary = "协议查询接口")
    public Result<AppAgreementVoResponse> findByType(AppAgreementVORequest appAgreementVORequest){
        return iProtocolService.findByType(appAgreementVORequest);
    }


}
