2023-08-31 08:17:32 +00:00
|
|
|
syntax = "v1"
|
|
|
|
|
|
|
|
info (
|
|
|
|
title: // TODO: add title
|
|
|
|
desc: // TODO: add description
|
|
|
|
author: ""
|
|
|
|
email: ""
|
|
|
|
)
|
|
|
|
|
|
|
|
import "basic.api"
|
|
|
|
|
|
|
|
service info {
|
|
|
|
@handler InfoHandler
|
|
|
|
post /api/info/user(UserInfoRequest) returns (response);
|
2023-09-25 07:58:33 +00:00
|
|
|
|
|
|
|
@handler AddressDefaultHandler
|
|
|
|
post /api/info/address/default(AddressIdRequest) returns (response);
|
|
|
|
|
|
|
|
@handler AddressAddHandler
|
|
|
|
post /api/info/address/add(AddressNameRequest) returns (response);
|
|
|
|
|
|
|
|
@handler AddressUpdateHandler
|
|
|
|
post /api/info/address/update(AddressObjectRequest) returns (response);
|
|
|
|
|
|
|
|
@handler AddressDeleteHandler
|
|
|
|
post /api/info/address/delete(AddressIdRequest) returns (response);
|
2023-08-31 08:17:32 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
type (
|
|
|
|
UserInfoRequest {
|
|
|
|
Module []string `json:"module"`
|
|
|
|
}
|
2023-09-25 07:58:33 +00:00
|
|
|
|
|
|
|
AddressObjectRequest {
|
|
|
|
AddressId int64 `json:"address_id"` // 地址id
|
|
|
|
Address string `json:"address"` // 地址
|
|
|
|
}
|
|
|
|
|
|
|
|
AddressIdRequest {
|
|
|
|
AddressId int64 `json:"address_id"` // 地址id
|
|
|
|
}
|
|
|
|
|
|
|
|
AddressNameRequest {
|
|
|
|
Address string `json:"address"` // 地址
|
|
|
|
}
|
2023-08-31 08:17:32 +00:00
|
|
|
)
|