证书
证书
获取证书详情
GET /certificates/{id}
权限
- 不认证用户
响应
成功响应Certificate结构体
字段 | 描述 |
---|---|
id int string |
证书ID |
name string |
证书名称 |
targetType string |
证书发放类型 course、classroom |
targetId int string |
班级/课程id |
description string |
证书描述 |
templateId int string |
模板id |
code string |
证书编码 |
status string |
证书状态 |
expiryDay string |
有效天数 |
autoIssue bool |
是否自动发放 |
isObtained bool |
当前用户是否获得 |
createdTime datetime |
创建时间 |
updatedTime datetime |
最后更新时间 |
course SimpleCourse |
课程信息 |
字段 | 描述 |
---|---|
id int string |
用户ID |
title string |
标题 |
courseSetTitle string |
课程标题 |
displayedTitle string |
显示标题 |
middle string |
中图 |
large string |
大图 |
获取证书列表
GET /certificates
权限
- 不认证用户
响应
成功响应CertificateList结构体
字段 | 描述 |
---|---|
data list<Certificate> |
证书列表 |