33 lines
727 B
Plaintext
33 lines
727 B
Plaintext
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);
|
|
|
|
@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"` // 资源唯一标识
|
|
CombineParam string `form:"combine_param"` // 合图参数
|
|
TemplateId int64 `form:"template_id"` // 合图参数
|
|
}
|
|
) |