产品列表
GET
http://probill.local/api//product/lists/server
请求参数
Authorization
在 Header 添加参数
Authorization
,其值为在 Bearer 之后拼接 Token示例:
Authorization: Bearer ********************
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request GET 'http://probill.local/api//product/lists/server'
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
time
integer
必需
data
array [object {9}]
必需
module_str
string
必需
price
string
必需
show_price
object
必需
cats
null
必需
id
integer
必需
name
string
必需
desc
string
必需
content
string
必需
price_config
array [object {8}]
必需
示例
{"code":0,"msg":"","time":1741767373,"data":[{"module_str":"服务器","price":"111","show_price":{"name":"11","sell_price":"111","time":"年","renew_price":"111.00","config_key":"1year"},"cats":null,"id":752,"name":"asdsad","desc":"asdasd","content":"<p>assdad</p>","price_config":[{"name":"11","rate":"1","time":"1","price":"111","cost_price":"1","time_range":"year","renew_price":"111","market_price":"111"}]},{"module_str":"服务器","price":"100","show_price":{"name":"1月","sell_price":"100","time":"月","renew_price":"100.00","config_key":"1month"},"cats":null,"id":751,"name":"测试物理机","desc":"测试的描述","content":"<p>CPU:INTEL E5-2650 V3</p>\n<p>内存:16GB DDR4 ECC</p>\n<p>硬盘:SSD 240GB *1</p>\n<p>带宽:上行30 mbps 下行50mbps</p>\n<p>IP数:默认1个</p>\n<p>防护:500G</p>","price_config":[{"name":"1月","rate":"1","time":"1","price":"100","cost_price":"50","time_range":"month","renew_price":"100","market_price":""},{"name":"半年","rate":"6","time":"6","price":"600","cost_price":"60","time_range":"month","renew_price":"599","market_price":""}]}]}