添加后台用户表直接分离

This commit is contained in:
eson
2023-06-25 18:30:39 +08:00
parent a5ea734eb0
commit 96c43325c0
72 changed files with 1678 additions and 77 deletions

34
server_api/backend.api Normal file
View File

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