2023-07-21 02:28:17 +00:00
|
|
|
syntax = "v1"
|
|
|
|
|
|
|
|
info (
|
|
|
|
title: // TODO: add title
|
|
|
|
desc: // TODO: add description
|
|
|
|
author: ""
|
|
|
|
email: ""
|
|
|
|
)
|
|
|
|
|
|
|
|
import "basic.api"
|
|
|
|
|
|
|
|
service assistant {
|
|
|
|
// 处理重定向
|
|
|
|
@handler RedirectHandler
|
2023-07-21 06:20:21 +00:00
|
|
|
post /api/assistant/redirect(RequestRedirect) returns (response);
|
|
|
|
}
|
|
|
|
|
|
|
|
type RequestRedirect {
|
|
|
|
Url string `json:"url"`
|
2023-07-21 02:28:17 +00:00
|
|
|
}
|