fusenapi/server_api/backend.api
2023-06-26 18:19:51 +08:00

34 lines
686 B
Plaintext

syntax = "v1"
info (
title: // TODO: add title
desc: // TODO: add description
author: ""
email: ""
)
import "basic.api"
service backend {
// 报价单详情
@handler QuotationDetailHandler
get /quotation/detail(RequestQuotationId) returns (response);
@handler BackendUserLoginHandler
post /backend-user/login(RequestUserLogin) returns (response);
}
type RequestQuotationId {
QuotationId int64 `form:"id"`
}
// BackendUserLoginHandler 用户登录请求结构
type RequestUserLogin {
Name string `json:"name"`
Password string `json:"pwd"`
}
// BackendUserLoginHandler 用户登录请求结构
type DataUserLogin {
Token string `json:"token"` // 登录jwt token
}