fix
wangpengfei
2023-08-25 50d0889137ea0dcce7d414607119a04dd730196f
api/v1/test/supplier_type.go
@@ -24,7 +24,7 @@
// @Produce application/json
// @Param data body test.SupplierType true "创建SupplierType"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /api/st/createSupplierType [post]
// @Router /st/createSupplierType [post]
func (stApi *SupplierTypeApi) CreateSupplierType(c *gin.Context) {
   var st test.SupplierType
   err := c.ShouldBindJSON(&st)
@@ -48,7 +48,7 @@
// @Produce application/json
// @Param data body test.SupplierType true "删除SupplierType"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /api/st/deleteSupplierType [delete]
// @Router /st/deleteSupplierType [delete]
func (stApi *SupplierTypeApi) DeleteSupplierType(c *gin.Context) {
   var st test.SupplierType
   err := c.ShouldBindJSON(&st)
@@ -72,7 +72,7 @@
// @Produce application/json
// @Param data body request.IdsReq true "批量删除SupplierType"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"批量删除成功"}"
// @Router /api/st/deleteSupplierTypeByIds [delete]
// @Router /st/deleteSupplierTypeByIds [delete]
func (stApi *SupplierTypeApi) DeleteSupplierTypeByIds(c *gin.Context) {
   var IDS request.IdsReq
   err := c.ShouldBindJSON(&IDS)
@@ -96,7 +96,7 @@
// @Produce application/json
// @Param data body test.SupplierType true "更新SupplierType"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /api/st/updateSupplierType [put]
// @Router /st/updateSupplierType [put]
func (stApi *SupplierTypeApi) UpdateSupplierType(c *gin.Context) {
   var st test.SupplierType
   err := c.ShouldBindJSON(&st)
@@ -120,7 +120,7 @@
// @Produce application/json
// @Param data query test.SupplierType true "用id查询SupplierType"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /api/st/findSupplierType [get]
// @Router /st/findSupplierType [get]
func (stApi *SupplierTypeApi) FindSupplierType(c *gin.Context) {
   var st test.SupplierType
   err := c.ShouldBindQuery(&st)
@@ -144,7 +144,7 @@
// @Produce application/json
// @Param data query testReq.SupplierTypeSearch true "分页获取SupplierType列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /api/st/getSupplierTypeList [get]
// @Router /st/getSupplierTypeList [get]
func (stApi *SupplierTypeApi) GetSupplierTypeList(c *gin.Context) {
   var pageInfo testReq.SupplierTypeSearch
   err := c.ShouldBindQuery(&pageInfo)