File tree Expand file tree Collapse file tree 2 files changed +65
-0
lines changed
Expand file tree Collapse file tree 2 files changed +65
-0
lines changed Original file line number Diff line number Diff line change @@ -111,9 +111,13 @@ components:
111111tags :
112112 - name : 评测
113113 description : 提交代码以使用洛谷题库评测
114+ - name : 查询
115+ description : 查询开放平台账户状态
114116
115117paths :
116118 /judge/problem :
117119 $ref : ' ./judge.yaml#/paths/~1problem'
118120 /judge/result :
119121 $ref : ' ./judge.yaml#/paths/~1result'
122+ /judge/quotaAvailable :
123+ $ref : ' ./judge.yaml#/paths/~1quotaAvailable'
Original file line number Diff line number Diff line change @@ -273,3 +273,64 @@ paths:
273273 $ref : ' #/components/schemas/JudgeCallback'
274274 ' 204 ' :
275275 description : 评测尚未完成,还没有任何结果产生
276+
277+ /quotaAvailable :
278+ get :
279+ summary : 查询账户计费点
280+ description : 查询当前账户的计费点情况
281+ tags : [ 查询 ]
282+ responses :
283+ ' 200 ' :
284+ description : 查询成功
285+ content :
286+ application/json :
287+ schema :
288+ type : object
289+ properties :
290+ quotas :
291+ type : array
292+ description : 计费点列表
293+ items :
294+ type : object
295+ properties :
296+ availablePoints :
297+ type : integer
298+ description : 可用计费点
299+ createTime :
300+ type : integer
301+ description : 计费点创建时间
302+ format : int64
303+ example : 1620000000
304+ validAfter :
305+ type : integer
306+ description : 计费点生效时间
307+ format : int64
308+ example : 1620000000
309+ expireTime :
310+ type : integer
311+ description : 计费点过期时间
312+ format : int64
313+ example : 1620000000
314+ points :
315+ type : object
316+ description : 计费套餐详情
317+ properties :
318+ max :
319+ type : integer
320+ description : 套餐最大计费点
321+ used :
322+ type : integer
323+ description : 已使用计费点
324+ orgs :
325+ type : object
326+ description : 机构信息
327+ properties :
328+ id :
329+ type : integer
330+ description : 机构 ID
331+ slug :
332+ type : string
333+ description : 机构标识
334+ name :
335+ type : string
336+ description : 机构名称
You can’t perform that action at this time.
0 commit comments