File tree Expand file tree Collapse file tree 2 files changed +55
-0
lines changed Expand file tree Collapse file tree 2 files changed +55
-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,54 @@ 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+ example : 30000
300+ createTime :
301+ type : integer
302+ description : 计费点创建时间
303+ format : int64
304+ example : 1697620471
305+ validAfter :
306+ type : integer
307+ description : 计费点生效时间
308+ format : int64
309+ example : 1713542400
310+ expireTime :
311+ type : integer
312+ description : 计费点过期时间
313+ format : int64
314+ example : 1721491199
315+ points :
316+ type : object
317+ description : 计费套餐详情
318+ properties :
319+ max :
320+ type : integer
321+ description : 套餐最大计费点
322+ example : 30000
323+ used :
324+ type : integer
325+ description : 已使用计费点
326+ example : 0
You can’t perform that action at this time.
0 commit comments