fix: 修改新增用户商品的配置项逻辑
Build and Deploy Vue3 / build (push) Successful in 4m9s
Build and Deploy Vue3 / deploy (push) Successful in 1m3s

This commit is contained in:
2026-04-06 18:44:11 +08:00
parent c07e09c151
commit f0e89695f4
36 changed files with 2078 additions and 190 deletions
+381 -1
View File
@@ -2,7 +2,7 @@
"openapi": "3.0.1",
"info": {
"title": "默认模块",
"description": "",
"description": "新增跨服务虚拟机数据迁移接口,支持通过 rsync + SSH tunneluser 在两个 kvm-virtctl 之间进行虚拟机数据传输和恢复。",
"version": "1.0.0"
},
"tags": [
@@ -35,6 +35,9 @@
},
{
"name": "admin-用户虚拟机"
},
{
"name": "UserGoods"
}
],
"paths": {
@@ -4060,6 +4063,383 @@
},
"security": []
}
},
"/api/v1/admin/good/user_goods/list": {
"get": {
"summary": "获取用户商品列表",
"deprecated": false,
"description": "",
"tags": [
"UserGoods"
],
"parameters": [
{
"name": "page",
"in": "query",
"description": "页码",
"required": false,
"schema": {
"type": "integer",
"default": 1
}
},
{
"name": "count",
"in": "query",
"description": "每页数量",
"required": false,
"schema": {
"type": "integer",
"default": 10
}
},
{
"name": "user_id",
"in": "query",
"description": "按用户 ID 筛选",
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "good_id",
"in": "query",
"description": "按商品 ID 筛选",
"required": false,
"schema": {
"type": "integer"
}
},
{
"name": "key",
"in": "query",
"description": "关键词搜索(按商品名称模糊匹配)",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "Authorization",
"in": "header",
"description": "",
"example": "Bearer {{token}}",
"schema": {
"type": "string",
"default": "Bearer {{token}}"
}
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/UserGoods"
}
},
"all_count": {
"type": "integer",
"description": "总数"
}
}
}
}
},
"headers": {}
}
},
"security": []
}
},
"/api/v1/admin/good/user_goods/detail": {
"get": {
"summary": "获取用户商品详情",
"deprecated": false,
"description": "",
"tags": [
"UserGoods"
],
"parameters": [
{
"name": "id",
"in": "query",
"description": "用户商品 ID",
"required": true,
"schema": {
"type": "integer"
}
},
{
"name": "Authorization",
"in": "header",
"description": "",
"example": "Bearer {{token}}",
"schema": {
"type": "string",
"default": "Bearer {{token}}"
}
}
],
"responses": {
"200": {
"description": "成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/UserGoods"
}
}
}
}
},
"headers": {}
}
},
"security": []
}
},
"/api/v1/admin/good/user_goods/create": {
"post": {
"summary": "新增用户商品",
"deprecated": false,
"description": "",
"tags": [
"UserGoods"
],
"parameters": [
{
"name": "Authorization",
"in": "header",
"description": "",
"example": "Bearer {{token}}",
"schema": {
"type": "string",
"default": "Bearer {{token}}"
}
}
],
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"good_id": {
"type": "integer",
"description": "商品 ID",
"example": 0
},
"user_id": {
"type": "integer",
"description": "用户 ID",
"example": 0
},
"order_id": {
"type": "integer",
"description": "订单 ID",
"example": 0
},
"good_plan_id": {
"type": "integer",
"description": "商品套餐 ID",
"example": 0
},
"item_id": {
"type": "integer",
"description": "归属项 ID",
"example": 0
},
"renew_price": {
"type": "integer",
"description": "续费价格",
"example": 0
},
"base_price": {
"type": "integer",
"description": "基础价格",
"example": 0
},
"note": {
"type": "string",
"description": "备注说明",
"example": ""
},
"expire_time": {
"type": "string",
"description": "到期时间,格式:2006-01-02 15:04:05",
"example": ""
},
"order_args": {
"description": "订单参数 json",
"example": "",
"type": "string"
}
},
"required": [
"good_id",
"user_id"
]
},
"examples": {}
}
},
"required": true
},
"responses": {
"200": {
"description": "创建成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/UserGoods"
}
}
}
}
},
"headers": {}
}
},
"security": []
}
},
"/api/v1/admin/good/user_goods/update": {
"post": {
"summary": "修改用户商品",
"deprecated": false,
"description": "",
"tags": [
"UserGoods"
],
"parameters": [
{
"name": "Authorization",
"in": "header",
"description": "",
"example": "Bearer {{token}}",
"schema": {
"type": "string",
"default": "Bearer {{token}}"
}
}
],
"requestBody": {
"content": {
"multipart/form-data": {
"schema": {
"type": "object",
"properties": {
"id": {
"type": "integer",
"description": "用户商品 ID",
"example": 0
},
"note": {
"type": "string",
"description": "备注说明",
"example": ""
},
"renew_price": {
"type": "integer",
"description": "续费价格",
"example": 0
},
"base_price": {
"type": "integer",
"description": "基础价格",
"example": 0
},
"expire_time": {
"type": "string",
"description": "到期时间,格式:2006-01-02 15:04:05",
"example": ""
},
"item_id": {
"type": "integer",
"description": "归属项 ID",
"example": 0
}
},
"required": [
"id"
]
}
}
},
"required": true
},
"responses": {
"200": {
"description": "修改成功",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"data": {
"$ref": "#/components/schemas/UserGoods"
}
}
}
}
},
"headers": {}
}
},
"security": []
}
},
"/api/v1/admin/good/user_goods/delete": {
"delete": {
"summary": "删除用户商品",
"deprecated": false,
"description": "",
"tags": [
"UserGoods"
],
"parameters": [
{
"name": "id",
"in": "query",
"description": "用户商品 ID",
"required": true,
"schema": {
"type": "integer"
}
},
{
"name": "Authorization",
"in": "header",
"description": "",
"example": "Bearer {{token}}",
"schema": {
"type": "string",
"default": "Bearer {{token}}"
}
}
],
"responses": {
"200": {
"description": "删除成功",
"headers": {}
}
},
"security": []
}
}
},
"components": {