package com.cool.store.service;

import com.cool.store.context.LoginUserInfo;
import com.cool.store.request.LicenseListRequest;
import com.cool.store.request.SubmitLicenseRequest;
import com.cool.store.request.license.BusinessLicenseRequest;
import com.cool.store.request.license.FoodLicenseRequest;
import com.cool.store.response.LicenseListResponse;
import com.cool.store.response.SubmitLicenseResponse;
import com.cool.store.vo.PartnerUserInfoVO;
import com.github.pagehelper.PageInfo;

public interface ApplyLicenseService {


    /**
     * 加盟商提交营业执照
     * @param request
     * @param user
     * @return
     */
    Boolean submitBusinessLicense(BusinessLicenseRequest request, PartnerUserInfoVO user);

    /**
     * 加盟商提交食品许可证
     * @param request
     * @param user
     * @return
     */
    Boolean submitFoodLicense(FoodLicenseRequest request, PartnerUserInfoVO user);


    /**
     * 提交证照信息
     * @param request
     * @return
     */
    @Deprecated
    Boolean submitLicense(SubmitLicenseRequest request, PartnerUserInfoVO user);

    /**
     * 获取默认值
     * @param shopId
     * @return
     */
    SubmitLicenseResponse getDefault(Long shopId);

    /**
     * 证照审核列表
     * @param request
     * @return
     */
    PageInfo<LicenseListResponse> licenseList(LicenseListRequest request,LoginUserInfo user);

    /**
     * 证照审核审批
     * @param id
     * @param status 0通过 1不通过
     * @return
     */
    Boolean licenseExamine(Long shopId, Integer status,String result,LoginUserInfo user);
}
