This commit is contained in:
eson
2023-08-28 17:20:08 +08:00
parent f41bea0201
commit 8c30648d3e
19 changed files with 5 additions and 1647 deletions

View File

@@ -1,34 +0,0 @@
syntax = "v1"
info (
title: // TODO: add title
desc: // TODO: add description
author: ""
email: ""
)
import "basic.api"
service backend {
// 报价单详情
@handler QuotationDetailHandler
get /api/quotation/detail(RequestQuotationId) returns (response);
@handler BackendUserLoginHandler
post /api/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
}