package com.utic.center.utic.traf.server.dao.repository.utic;

import com.utic.center.common.annotation.SqlOperation;
import com.utic.center.utic.traf.server.dao.mapper.utic.UticParamMapper;
import com.utic.center.utic.traf.server.dto.utic.TrafficGrade;
import com.utic.center.utic.traf.server.dto.utic.TrafficWeight;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@RequiredArgsConstructor
public class UticParamRepository {

    private final UticParamMapper mapper;

    @SqlOperation(type = SqlOperation.SqlType.SELECT, table = "TRAFFICGRADE", param = "소통등급")
    public List<TrafficGrade> findTrafficGrade() {
        return this.mapper.findTrafficGrade();
    }
    @SqlOperation(type = SqlOperation.SqlType.SELECT, table = "TRAFFIC_WEIGHT", param = "가중치파라미터")
    public List<TrafficWeight> findTrafficWeight() {
        return this.mapper.findTrafficWeight();
    }

}
