package com.lion.lionwebsite.Dao.normal;

import com.lion.lionwebsite.Domain.CustomConfiguration;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
@Mapper
public interface CustomConfigurationMapper {
//    @Insert("insert into customConfiguration values (#{parameter}, #{value})")
//    void insertConfiguration(CustomConfiguration configuration);

    @Update("update customConfiguration set value=#{value} where parameter=#{parameter}")
    void updateConfiguration(@Param("parameter")String parameter, @Param("value")String value);

//    @Delete("delete from customConfiguration where parameter=#{parameter}")
//    void deleteConfiguration(CustomConfiguration configuration);

    @Select("select * from customConfiguration where parameter=#{parameter}")
    CustomConfiguration selectConfiguration(String parameter);
}
