Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
*revel.Controller
}
type CourseController ¶
type CourseController struct {
*revel.Controller
}
type NewsController ¶
type NewsController struct {
*revel.Controller
}
NewsController is news controller 😂
func (NewsController) GetAll ¶
func (n NewsController) GetAll() revel.Result
GetAll from models.News
func (NewsController) GetOne ¶
func (n NewsController) GetOne(nid int) revel.Result
GetOne from models.News
func (NewsController) GetTrendings ¶
func (n NewsController) GetTrendings() revel.Result
GetTrendings 获取趋势较好的文章
func (*NewsController) Save ¶
func (n *NewsController) Save() revel.Result
Save a news from user request
type PaperController ¶
type PaperController struct {
*revel.Controller
}
PaperController paper that has many questions
func (PaperController) Avg ¶
func (p PaperController) Avg(cid int) revel.Result
Avg is get a paper avg score
type QuestionController ¶
type QuestionController struct {
*revel.Controller
}
QuestionController is question controller
func (*QuestionController) Add ¶
func (q *QuestionController) Add(cid int) revel.Result
Add 添加题库,cid是课程ID
func (QuestionController) AddFromExcel ¶
func (q QuestionController) AddFromExcel() revel.Result
AddFromExcel 将文件传入服务中,解析并返回数据
func (QuestionController) Fetch ¶
func (q QuestionController) Fetch(qid int) revel.Result
Fetch find a question by questionID
func (QuestionController) FetchAll ¶
func (q QuestionController) FetchAll() revel.Result
type UserController ¶
type UserController struct {
*revel.Controller
}
UserControl 用户管理
func (UserController) Add ¶
func (c UserController) Add() revel.Result
Add 添加用户 http -f POST :9000/auth/register username='AnnatarHe' pwd='aaa' school_id='01111111' role='11'
func (UserController) FinishedPaper ¶
func (c UserController) FinishedPaper(pid int) revel.Result
FinishedPaper is 完成了某张卷子,记录
func (UserController) Login ¶
func (c UserController) Login() revel.Result
Login 用户登录 this interface should get username and password for auth
Click to show internal directories.
Click to hide internal directories.