fusenapi/server_api/backend.api

34 lines
694 B
Plaintext
Raw Normal View History

2023-06-25 10:30:39 +00:00
syntax = "v1"
info (
title: // TODO: add title
desc: // TODO: add description
author: ""
email: ""
)
import "basic.api"
service backend {
// 报价单详情
@handler QuotationDetailHandler
2023-07-12 03:09:43 +00:00
get /api/quotation/detail(RequestQuotationId) returns (response);
2023-06-25 10:30:39 +00:00
@handler BackendUserLoginHandler
2023-07-12 03:09:43 +00:00
post /api/backend-user/login(RequestUserLogin) returns (response);
2023-06-25 10:30:39 +00:00
}
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
}