Categorygithub.com/EduOJ/backend
modulepackage
0.0.0-20240630134633-aec6cf1eaeaa
Repository: https://github.com/eduoj/backend.git
Documentation: pkg.go.dev

# README

EduOJ

codecov Go Report Card Test

License.

This project is licensed under GNU AFFERO GENERAL PUBLIC LICENSE Version 3.

Contribution

Our document is still under construction.

Code style.

All code must be formatted by go fmt.

All tests of app/controllers is running with the same in-memory database, so they shouldn't rely on a clean database and shouldn't cleanup after runs. Also, they should be running under parallel mode.

All other tests should make it own database and clean it up after running.

Roles

NameTargetPermission
adminN/Aall
problem_creatorproblemall
class_creatorclassall

Permissions

Here are the permissions and their descriptions.

NameDescription
read_userthe permission to read users
manage_userthe permission to manage users
manage_problem无实际意义,但是有可能有update_problem / delete_problem权限的人必须拥有此全局权限。
create_problemcreate problem
read_submissionread submission of a certain problem. unscoped can read all problems.
update_problemupdate problem. A scoped update_problem can only update selected problem. unscoped can update all problems.
delete_problemdelete a problem. same as above.
read_problem_secretsread sensitive information such as test case.
read_logsread logs.
read_class_secretsread sensitive information such as invite code
manage_classthe permission to manage a class or all classes
manage_studentsthe permission to manage students of a class or all classes
manage_problem_setsthe permission to manage problem sets of a class or all classes
clone_problem_setsthe permission to clone problem sets of a class or all classes
read_answersread submissions in a class

Buckets:

images:

images with their "path" as filename.

problems

problems
└── problemID
    ├── attachment
    ├── input
    │   └── testcase_id.in
    └── output
        └── testcase_id.out

scripts

scripts
└── script_name

submissions

submissions
└── submissionID
    ├── run
    |   └── runID
    |       ├── output
    |       ├── compiler_output
    |       └── comparer_output
    └── code

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
Package docs GENERATED BY THE COMMAND ABOVE; DO NOT EDIT This file was generated by swaggo/swag.
No description provided by the author