Skip to content

XY-cpp/oj-back

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Online Judge 后端

运行项目

  • 安装rust
  • 输入cargo run --release运行

前后端接口

后端默认地址为http://127.0.0.1:8001,前后端通过http请求收发json进行通信。

前端请求格式:

{
    "data" {
        "id": 1
        // ...
    }
}

后端发送格式:

{
    "status": "success", // or "error"
    "message": "login successfully", // 额外说明的信息,一般success留空,error具体说明
    "data": {
        "id": 1
        // ...
    }
}

具体的请求信息和返回信息见module目录下的文件内的注释

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages