package com.lion.lionwebsite.Dao.cache;

import com.lion.lionwebsite.Domain.PageNameCache;
import org.apache.ibatis.annotations.*;

@Mapper
public interface PageNameCacheMapper {

    @Insert("insert into pageName (gid, page, pageName) values (#{gid}, #{page}, #{pageName})")
    void insertPageNameCache(PageNameCache pageNameCache);


    @Select("select pageName from pageName where gid=#{gid} and page=#{page}")
    String selectPageName(@Param("gid") int gid, @Param("page") short page);


    @Delete("delete from pageName where gid=#{gid}")
    void deletePageNameByGid(int gid);

//    @Delete("delete from pageName where gid=#{gid} and page=#{page}")
//    void deletePageName(PageNameCache pageNameCache);
}
