feat:获取资源详情

This commit is contained in:
Hiven
2023-08-09 14:18:27 +08:00
parent 2ed06a6df0
commit d5e5cdc8f0
5 changed files with 119 additions and 0 deletions

View File

@@ -12,8 +12,18 @@ import "basic.api"
service resource {
@handler LogoCombineHandler
post /api/resource/logo-combine(LogoCombineReq) returns (response);
@handler ResourceInfoHandler
get /api/resource/info(ResourceInfoReq) returns (response);
}
type (
ResourceInfoReq {
ResourceId string `form:"resource_id,optional"` // 资源ID
ResourceKey string `form:"resource_key,optional"` // 资源唯一标识
}
)
type (
LogoCombineReq {
ResourceKey string `form:"resource_key"` // 资源唯一标识