From c20b2d72c1f6241213f792dde44e50def6bf3510 Mon Sep 17 00:00:00 2001
From: wangpengfei <274878379@qq.com>
Date: 星期五, 25 八月 2023 16:42:05 +0800
Subject: [PATCH] fix
---
api/v1/test/contract.go | 14 +++++++-------
1 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/api/v1/test/contract.go b/api/v1/test/contract.go
index eccd62c..886bab3 100644
--- a/api/v1/test/contract.go
+++ b/api/v1/test/contract.go
@@ -25,7 +25,7 @@
// @Param file formData file true "涓婁紶鏂囦欢"
// @Param name formData string true "鏂囦欢鍚嶇О"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}"
-// @Router /api/con/createContract [post]
+// @Router /con/createContract [post]
func (conApi *ContractApi) CreateContract(c *gin.Context) {
name := c.Param("name")
file, err := c.FormFile("file")
@@ -61,7 +61,7 @@
// @Produce application/json
// @Param data body test.Contract true "鍒犻櫎Contract"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"鍒犻櫎鎴愬姛"}"
-// @Router /api/con/deleteContract [delete]
+// @Router /con/deleteContract [delete]
func (conApi *ContractApi) DeleteContract(c *gin.Context) {
var con test.Contract
err := c.ShouldBindJSON(&con)
@@ -85,7 +85,7 @@
// @Produce application/json
// @Param data body request.IdsReq true "鎵归噺鍒犻櫎Contract"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"鎵归噺鍒犻櫎鎴愬姛"}"
-// @Router /api/con/deleteContractByIds [delete]
+// @Router /con/deleteContractByIds [delete]
func (conApi *ContractApi) DeleteContractByIds(c *gin.Context) {
var IDS request.IdsReq
err := c.ShouldBindJSON(&IDS)
@@ -109,7 +109,7 @@
// @Produce application/json
// @Param data body test.Contract true "鏇存柊Contract"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"鏇存柊鎴愬姛"}"
-// @Router /api/con/updateContract [put]
+// @Router /con/updateContract [put]
func (conApi *ContractApi) UpdateContract(c *gin.Context) {
var con test.Contract
err := c.ShouldBindJSON(&con)
@@ -133,7 +133,7 @@
// @Produce application/json
// @Param data query test.Contract true "鐢╥d鏌ヨContract"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"鏌ヨ鎴愬姛"}"
-// @Router /api/con/findContract [get]
+// @Router /con/findContract [get]
func (conApi *ContractApi) FindContract(c *gin.Context) {
var con test.Contract
err := c.ShouldBindQuery(&con)
@@ -157,7 +157,7 @@
// @Produce application/json
// @Param data query testReq.ContractSearch true "鍒嗛〉鑾峰彇Contract鍒楄〃"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"鑾峰彇鎴愬姛"}"
-// @Router /api/con/getContractList [get]
+// @Router /con/getContractList [get]
func (conApi *ContractApi) GetContractList(c *gin.Context) {
var pageInfo testReq.ContractSearch
err := c.ShouldBindQuery(&pageInfo)
@@ -186,7 +186,7 @@
// @Produce application/json
// @Param data query testReq.ContractSearch true "棰勮Contract"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"棰勮鎴愬姛"}"
-// @Router /api/con/previewContract [get]
+// @Router /con/previewContract [get]
func (conApi *ContractApi) PreviewContract(c *gin.Context) {
var pageInfo testReq.ContractSearch
err := c.ShouldBindQuery(&pageInfo)
--
Gitblit v1.8.0