package com.cmvr.vi.service.ex;

import com.alibaba.fastjson2.JSONObject;
import com.cmvr.test.service.ex.ExViSchemeService;
import com.cmvr.vi.model.domain.ViScheme;
import com.cmvr.vi.service.IViSchemeService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

@Service
@RequiredArgsConstructor
public class ExViSchemeServiceImpl implements ExViSchemeService {

    private final IViSchemeService ViSchemeService;

    @Override
    public JSONObject queryById(String id) {
        ViScheme viScheme = ViSchemeService.selectViSchemeBySchemeId(id);
        return JSONObject.from(viScheme);
    }
}
