Browse Source

新增对外接口文档

tags/v1.21.12.1
yuyuanshifu 4 years ago
parent
commit
242cb99321
2 changed files with 0 additions and 4 deletions
  1. BIN
      docs/opendata对外接口文档.docx
  2. +0
    -4
      routers/repo/attachment.go

BIN
docs/opendata对外接口文档.docx View File


+ 0
- 4
routers/repo/attachment.go View File

@@ -609,8 +609,6 @@ func HandleUnDecompressAttachment() {
}

func QueryAllPublicDataset(ctx *context.Context){
log.Info("QueryAllPublicDataset")

attachs, err := models.GetAllPublicAttachments()
if err != nil {
ctx.JSON(200, map[string]string{
@@ -636,8 +634,6 @@ func QueryAllPublicDataset(ctx *context.Context){
return
}

log.Info(string(data))

ctx.JSON(200, map[string]string{
"result_code": "0",
"data": string(data),


Loading…
Cancel
Save