examples to new tsrpc-cli

This commit is contained in:
King Wang
2021-10-07 15:30:02 +08:00
parent c21445548e
commit 69a90884d5
86 changed files with 652 additions and 1697 deletions

View File

@@ -34,7 +34,7 @@ export interface ServiceType {
}
export const serviceProto: ServiceProto<ServiceType> = {
"version": 2,
"version": 3,
"services": [
{
"id": 0,
@@ -248,6 +248,43 @@ export const serviceProto: ServiceProto<ServiceType> = {
"type": {
"type": "String"
}
},
{
"id": 1,
"name": "user",
"type": {
"type": "Reference",
"target": "../../models/CurrentUser/CurrentUser"
}
}
]
},
"../../models/CurrentUser/CurrentUser": {
"type": "Interface",
"properties": [
{
"id": 0,
"name": "uid",
"type": {
"type": "Number"
}
},
{
"id": 1,
"name": "username",
"type": {
"type": "String"
}
},
{
"id": 2,
"name": "roles",
"type": {
"type": "Array",
"elementType": {
"type": "String"
}
}
}
]
},