|
@@ -9,7 +9,6 @@ package api
|
|
|
import (
|
|
|
"fmt"
|
|
|
|
|
|
- "github.com/iris-contrib/middleware/csrf"
|
|
|
"github.com/kataras/iris/v12"
|
|
|
"go.mod/services"
|
|
|
"go.mod/web/utils"
|
|
@@ -127,7 +126,7 @@ func (c *ProjectAccountApi) GetGroup() {
|
|
|
// @Security ApiKeyAuth
|
|
|
// @Param name body string true "检索内容"
|
|
|
// @Success 200 {object} viewmodels.ProjectAccount "{code:0成功,-1参数类错误,data:viewmodels.ProjectAccount,msg:错误信息}"
|
|
|
-// @Router /api/projectAccount/search [get]
|
|
|
+// @Router /api/projectAccount/searchc [get]
|
|
|
func (c *ProjectAccountApi) GetSearch() {
|
|
|
// 获得项目ID
|
|
|
projectIdInt, err := utils.GetProjectId(c.Ctx)
|
|
@@ -135,7 +134,6 @@ func (c *ProjectAccountApi) GetSearch() {
|
|
|
c.Ctx.JSON(iris.Map{"code": -1, "msg": fmt.Sprintf("%s", err)})
|
|
|
return
|
|
|
}
|
|
|
- c.Ctx.Header("X-CSRF-Token", csrf.Token(c.Ctx))
|
|
|
|
|
|
// 获得检索关键字
|
|
|
AccountData := viewmodels.ProjectAccount{}
|