2023-05-31 03:38:17 +00:00
|
|
|
syntax = "v1"
|
|
|
|
|
|
|
|
info (
|
|
|
|
title: // 个人文件传输
|
|
|
|
desc: // 图片,pdf,设计logo等
|
|
|
|
author: ""
|
|
|
|
email: ""
|
|
|
|
)
|
|
|
|
|
2023-06-07 11:47:45 +00:00
|
|
|
import "basic.api"
|
2023-05-31 03:38:17 +00:00
|
|
|
|
2023-06-07 11:47:45 +00:00
|
|
|
service data-transfer {
|
|
|
|
//获取标准logo列表
|
|
|
|
@handler GetStandardLogoListHandler
|
2023-06-08 03:34:58 +00:00
|
|
|
get /standard-logo/list returns (response);
|
|
|
|
//获取二维码设置列表
|
|
|
|
@handler GetQrCodeSetListHandler
|
|
|
|
get /qrcode-set/list returns (response);
|
2023-06-08 09:02:38 +00:00
|
|
|
//生成二维码
|
|
|
|
@handler UploadQrcodeHandler
|
|
|
|
post /upload/qrcode (UploadQrcodeReq) returns (response);
|
2023-05-31 03:38:17 +00:00
|
|
|
}
|
|
|
|
|
2023-06-07 11:47:45 +00:00
|
|
|
//获取标准logo列表
|
|
|
|
type GetStandardLogoListRsp {
|
|
|
|
Id int64 `json:"id"`
|
|
|
|
Name string `json:"name"`
|
|
|
|
Url string `json:"url"`
|
2023-06-08 03:34:58 +00:00
|
|
|
}
|
|
|
|
//获取二维码设置列表
|
|
|
|
type GetQrCodeSetListRsp {
|
|
|
|
Id int64 `json:"id"`
|
|
|
|
Name string `json:"name"`
|
2023-06-08 09:02:38 +00:00
|
|
|
}
|
|
|
|
//生成二维码
|
|
|
|
type UploadQrcodeReq {
|
2023-06-08 09:13:11 +00:00
|
|
|
Url string `json:"url"`
|
|
|
|
QRcodeType int64 `json:"QRcodeType"`
|
2023-06-08 09:02:38 +00:00
|
|
|
}
|
|
|
|
type UploadQrcodeRsp {
|
|
|
|
Link string `json:"link"`
|
2023-06-08 11:33:30 +00:00
|
|
|
Data string `json:"d"`
|
2023-05-31 03:38:17 +00:00
|
|
|
}
|