oj/oj-spring-boot/src/main/java/top/weiyuexin/service/CodeService.java

31 lines
724 B
Java

package top.weiyuexin.service;
import com.baomidou.mybatisplus.extension.service.IService;
import top.weiyuexin.pojo.Code;
import top.weiyuexin.pojo.TestCase;
import top.weiyuexin.pojo.vo.R;
public interface CodeService extends IService<Code> {
public R compileJava(Code code);
public R runJava(Code code, TestCase testCase);
public R compileCpp(Code code);
public R runCpp(Code code, TestCase testCase);
public R compileC(Code code);
public R runC(Code code, TestCase testCase);
public R compileGolang(Code code);
public R runGolang(Code code, TestCase testCase);
public R runPython(Code code, TestCase testCase);
public R runJavaScript(Code code, TestCase testCase);
}