fusenapi/server_api/resource.api

33 lines
727 B
Plaintext
Raw Normal View History

syntax = "v1"
info (
title: // TODO: add title
desc: // TODO: add description
author: ""
email: ""
)
import "basic.api"
service resource {
@handler LogoCombineHandler
post /api/resource/logo-combine(LogoCombineReq) returns (response);
2023-08-09 06:18:27 +00:00
@handler ResourceInfoHandler
get /api/resource/info(ResourceInfoReq) returns (response);
}
2023-08-09 06:18:27 +00:00
type (
ResourceInfoReq {
ResourceId string `form:"resource_id,optional"` // 资源ID
ResourceKey string `form:"resource_key,optional"` // 资源唯一标识
}
)
type (
LogoCombineReq {
ResourceKey string `form:"resource_key"` // 资源唯一标识
CombineParam string `form:"combine_param"` // 合图参数
TemplateId int64 `form:"template_id"` // 合图参数
}
)