package com.cool.store.mapper;

import com.cool.store.entity.LicenseTransactDO;
import com.cool.store.entity.RegionDO;
import com.cool.store.request.LicenseListRequest;
import com.cool.store.response.LicenseListResponse;
import org.apache.ibatis.annotations.Param;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

public interface ApplyLicenseMapper extends Mapper<LicenseTransactDO> {

    List<LicenseListResponse> licenseList(@Param("request") LicenseListRequest request,
                                          @Param("userId") String userId,
                                          @Param("fightRegions") List<String> fightRegions);

    void updateByShopId(@Param("entity") LicenseTransactDO licenseTransactDO);

    LicenseTransactDO selectByShopId(@Param("shopId") Long shopId);
}
