package com.sonic.lion.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sonic.lion.domain.entity.AppStoreProduct;
import com.sonic.lion.domain.resp.AppProductInfoOutput;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface AppStoreProductDao extends BaseMapper<AppStoreProduct> {

    /**
     * 查询app产品信息
     * @param appProductId
     * @return
     */
    @Select("select * from t_app_product where product_id = #{appProductId} and is_delete = 0")
    AppProductInfoOutput queryAppProductInfo(@Param("appProductId") String appProductId);

}
