package com.cico.nest.lcdp.boot.core.system.dal.mysql.oauth2;

import com.cico.nest.lcdp.boot.core.system.dal.dataobject.oauth2.OAuth2CodeDO;
import com.cico.nest.lcdp.framework.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface OAuth2CodeMapper extends BaseMapperX<OAuth2CodeDO> {

    default OAuth2CodeDO selectByCode(String code) {
        return selectOne(OAuth2CodeDO::getCode, code);
    }

}
