From 0183cdab4c41a01e832a52ff374bc442647b42ef Mon Sep 17 00:00:00 2001
From: haoyanbin <605649647@qq.com>
Date: Mon, 27 Dec 2021 15:29:17 +0800
Subject: [PATCH] Api

---
 app/operate/apis/org_ad.go                    |  40 +-
 app/operate/apis/org_club.go                  |  40 +-
 app/operate/apis/org_club_player.go           | 123 +++++
 app/operate/apis/org_club_team.go             | 123 +++++
 app/operate/apis/org_player.go                |  40 +-
 app/operate/apis/org_team.go                  |  40 +-
 app/operate/apis/org_team_club.go             |  86 ++++
 app/operate/apis/org_team_match.go            | 155 ++++++
 app/operate/apis/org_team_match_evaluate.go   | 158 ++++++
 app/operate/apis/org_team_player.go           | 123 +++++
 app/operate/apis/org_team_team.go             | 123 +++++
 app/operate/apis/org_team_user.go             |  40 +-
 app/operate/apis/org_user.go                  | 453 ++++++++++++++++++
 app/operate/router/org_club_player.go         |  24 +
 app/operate/router/org_club_team.go           |  24 +
 .../{org_club_user.go => org_team_club.go}    |  13 +-
 app/operate/router/org_team_match.go          |  25 +
 app/operate/router/org_team_match_evaluate.go |  25 +
 app/operate/router/org_team_player.go         |  24 +
 app/operate/router/org_team_team.go           |  24 +
 app/operate/router/org_user.go                |  39 ++
 21 files changed, 1634 insertions(+), 108 deletions(-)
 create mode 100644 app/operate/apis/org_club_player.go
 create mode 100644 app/operate/apis/org_club_team.go
 create mode 100644 app/operate/apis/org_team_club.go
 create mode 100644 app/operate/apis/org_team_match.go
 create mode 100644 app/operate/apis/org_team_match_evaluate.go
 create mode 100644 app/operate/apis/org_team_player.go
 create mode 100644 app/operate/apis/org_team_team.go
 create mode 100644 app/operate/apis/org_user.go
 create mode 100644 app/operate/router/org_club_player.go
 create mode 100644 app/operate/router/org_club_team.go
 rename app/operate/router/{org_club_user.go => org_team_club.go} (50%)
 create mode 100644 app/operate/router/org_team_match.go
 create mode 100644 app/operate/router/org_team_match_evaluate.go
 create mode 100644 app/operate/router/org_team_player.go
 create mode 100644 app/operate/router/org_team_team.go
 create mode 100644 app/operate/router/org_user.go

diff --git a/app/operate/apis/org_ad.go b/app/operate/apis/org_ad.go
index cc247bf..2d0e3b5 100644
--- a/app/operate/apis/org_ad.go
+++ b/app/operate/apis/org_ad.go
@@ -18,10 +18,10 @@ type OrgAd struct {
 	api.Api
 }
 
-// GetPage 获取广告列表
-// @Summary 获取广告列表
-// @Description 获取广告列表
-// @Tags 广告
+// GetPage <运营>获取广告列表
+// @Summary <运营>获取广告列表
+// @Description <运营>获取广告列表
+// @Tags <运营>广告
 // @Param pageSize query int false "页条数"
 // @Param pageIndex query int false "页码"
 // @Success 200 {string} string "{"code": 200, "data": [...]}"
@@ -54,10 +54,10 @@ func (e OrgAd) GetPage(c *gin.Context) {
 	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
 }
 
-// Get 获取广告
-// @Summary 获取广告
-// @Description 获取广告
-// @Tags 广告
+// Get <运营>获取广告
+// @Summary <运营>获取广告
+// @Description <运营>获取广告
+// @Tags <运营>广告
 // @Param id path string false "id"
 // @Success 200 {string} string  {data=models.OrgAd} "{"code": 200, "data": [...]}"
 // @Router /api/v1/org-ad/{id} [get]
@@ -87,10 +87,10 @@ func (e OrgAd) Get(c *gin.Context) {
 	e.OK( object, "查询成功")
 }
 
-// Insert 创建广告
-// @Summary 创建广告
-// @Description 创建广告
-// @Tags 广告
+// Insert <运营>创建广告
+// @Summary <运营>创建广告
+// @Description <运营>创建广告
+// @Tags <运营>广告
 // @Accept application/json
 // @Product application/json
 // @Param data body dto.OrgAdInsertReq true "data"
@@ -122,10 +122,10 @@ func (e OrgAd) Insert(c *gin.Context) {
 	e.OK(req.GetId(), "创建成功")
 }
 
-// Update 修改广告
-// @Summary 修改广告
-// @Description 修改广告
-// @Tags 广告
+// Update <运营>修改广告
+// @Summary <运营>修改广告
+// @Description <运营>修改广告
+// @Tags <运营>广告
 // @Accept application/json
 // @Product application/json
 // @Param data body dto.OrgAdUpdateReq true "body"
@@ -156,10 +156,10 @@ func (e OrgAd) Update(c *gin.Context) {
 	e.OK( req.GetId(), "修改成功")
 }
 
-// Delete 删除广告
-// @Summary 删除广告
-// @Description 删除广告
-// @Tags 广告
+// Delete <运营>删除广告
+// @Summary <运营>删除广告
+// @Description <运营>删除广告
+// @Tags <运营>广告
 // @Param ids body []int false "ids"
 // @Success 200 {string} string  	"{"code": 200, "message": "删除成功"}"
 // @Router /api/v1/org-ad [delete]
diff --git a/app/operate/apis/org_club.go b/app/operate/apis/org_club.go
index 0837211..7771d04 100644
--- a/app/operate/apis/org_club.go
+++ b/app/operate/apis/org_club.go
@@ -18,10 +18,10 @@ type OrgClub struct {
 	api.Api
 }
 
-// GetPage 获取俱乐部列表
-// @Summary 获取俱乐部列表
-// @Description 获取俱乐部列表
-// @Tags 俱乐部
+// GetPage <俱乐部>获取俱乐部列表
+// @Summary <俱乐部>获取俱乐部列表
+// @Description <俱乐部>获取俱乐部列表
+// @Tags <俱乐部>俱乐部
 // @Param pageSize query int false "页条数"
 // @Param pageIndex query int false "页码"
 // @Success 200 {string} string "{"code": 200, "data": [...]}"
@@ -54,10 +54,10 @@ func (e OrgClub) GetPage(c *gin.Context) {
 	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
 }
 
-// Get 获取俱乐部
-// @Summary 获取俱乐部
-// @Description 获取俱乐部
-// @Tags 俱乐部
+// Get <俱乐部>获取俱乐部
+// @Summary <俱乐部>获取俱乐部
+// @Description <俱乐部>获取俱乐部
+// @Tags <俱乐部>俱乐部
 // @Param id path string false "id"
 // @Success 200 {string} string  "{"code": 200, "data": [...]}"
 // @Router /api/v1/org-club/{id} [get]
@@ -87,10 +87,10 @@ func (e OrgClub) Get(c *gin.Context) {
 	e.OK( object, "查询成功")
 }
 
-// Insert 创建俱乐部
-// @Summary 创建俱乐部
-// @Description 创建俱乐部
-// @Tags 俱乐部
+// Insert <俱乐部>创建俱乐部
+// @Summary <俱乐部>创建俱乐部
+// @Description <俱乐部>创建俱乐部
+// @Tags <俱乐部>俱乐部
 // @Accept application/json
 // @Product application/json
 // @Param data body dto.OrgClubInsertReq true "data"
@@ -122,10 +122,10 @@ func (e OrgClub) Insert(c *gin.Context) {
 	e.OK(req.GetId(), "创建成功")
 }
 
-// Update 修改俱乐部
-// @Summary 修改俱乐部
-// @Description 修改俱乐部
-// @Tags 俱乐部
+// Update <俱乐部>修改俱乐部
+// @Summary <俱乐部>修改俱乐部
+// @Description <俱乐部>修改俱乐部
+// @Tags <俱乐部>俱乐部
 // @Accept application/json
 // @Product application/json
 // @Param data body dto.OrgClubUpdateReq true "body"
@@ -156,10 +156,10 @@ func (e OrgClub) Update(c *gin.Context) {
 	e.OK( req.GetId(), "修改成功")
 }
 
-// Delete 删除俱乐部
-// @Summary 删除俱乐部
-// @Description 删除俱乐部
-// @Tags 俱乐部
+// Delete <俱乐部>删除俱乐部
+// @Summary <俱乐部>删除俱乐部
+// @Description <俱乐部>删除俱乐部
+// @Tags <俱乐部>俱乐部
 // @Param ids body []int false "ids"
 // @Success 200 {string} string  	"{"code": 200, "message": "删除成功"}"
 // @Router /api/v1/org-club [delete]
diff --git a/app/operate/apis/org_club_player.go b/app/operate/apis/org_club_player.go
new file mode 100644
index 0000000..e48052d
--- /dev/null
+++ b/app/operate/apis/org_club_player.go
@@ -0,0 +1,123 @@
+package apis
+
+import (
+	"fmt"
+
+	"github.com/gin-gonic/gin"
+	"github.com/go-admin-team/go-admin-core/sdk/api"
+	_ "github.com/go-admin-team/go-admin-core/sdk/pkg/response"
+
+	"go-admin/app/operate/models"
+	"go-admin/app/operate/service"
+	"go-admin/app/operate/service/dto"
+	"go-admin/common/actions"
+)
+
+type OrgClubPlayer struct {
+	api.Api
+}
+
+// GetPage <俱乐部>获取球员数据列表
+// @Summary <俱乐部>获取球员数据列表
+// @Description <俱乐部>获取球员数据列表
+// @Tags <俱乐部>球员
+// @Param pageSize query int false "页条数"
+// @Param pageIndex query int false "页码"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-player [get]
+// @Security Bearer
+func (e OrgClubPlayer) GetPage(c *gin.Context) {
+    req := dto.OrgPlayerGetPageReq{}
+    s := service.OrgPlayer{}
+    err := e.MakeContext(c).
+        MakeOrm().
+        Bind(&req).
+        MakeService(&s.Service).
+        Errors
+   	if err != nil {
+   		e.Logger.Error(err)
+   		e.Error(500, err, err.Error())
+   		return
+   	}
+
+	p := actions.GetPermissionFromContext(c)
+	list := make([]models.OrgPlayer, 0)
+	var count int64
+
+	err = s.GetPage(&req, p, &list, &count)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取球员 失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
+}
+
+// GetPage <俱乐部>获取球员比赛列表
+// @Summary <俱乐部>获取球员比赛列表
+// @Description <俱乐部>获取球员比赛列表
+// @Tags <俱乐部>球员
+// @Param pageSize query int false "页条数"
+// @Param pageIndex query int false "页码"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-player/get-match [get]
+// @Security Bearer
+func (e OrgClubPlayer) GetPageMatch(c *gin.Context) {
+	req := dto.OrgPlayerGetPageReq{}
+	s := service.OrgPlayer{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	p := actions.GetPermissionFromContext(c)
+	list := make([]models.OrgPlayer, 0)
+	var count int64
+
+	err = s.GetPage(&req, p, &list, &count)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取球员 失败,\r\n失败信息 %s", err.Error()))
+		return
+	}
+
+	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
+}
+
+// Get <俱乐部>获取球员比赛详情
+// @Summary <俱乐部>获取球员比赛详情
+// @Description <俱乐部>获取球员比赛详情
+// @Tags <俱乐部>球员
+// @Param id path string false "id"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-player/{id} [get]
+// @Security Bearer
+func (e OrgClubPlayer) Get(c *gin.Context) {
+	req := dto.OrgPlayerGetReq{}
+	s := service.OrgPlayer{}
+    err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+	var object models.OrgPlayer
+
+	p := actions.GetPermissionFromContext(c)
+	err = s.Get(&req, p, &object)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取球员失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.OK( object, "查询成功")
+}
diff --git a/app/operate/apis/org_club_team.go b/app/operate/apis/org_club_team.go
new file mode 100644
index 0000000..7888049
--- /dev/null
+++ b/app/operate/apis/org_club_team.go
@@ -0,0 +1,123 @@
+package apis
+
+import (
+	"fmt"
+
+	"github.com/gin-gonic/gin"
+	"github.com/go-admin-team/go-admin-core/sdk/api"
+	_ "github.com/go-admin-team/go-admin-core/sdk/pkg/response"
+
+	"go-admin/app/operate/models"
+	"go-admin/app/operate/service"
+	"go-admin/app/operate/service/dto"
+	"go-admin/common/actions"
+)
+
+type OrgClubTeam struct {
+	api.Api
+}
+
+// GetPage <俱乐部>获取球队数据列表
+// @Summary <俱乐部>获取球队数据列表
+// @Description <俱乐部>获取球队数据列表
+// @Tags <俱乐部>球队
+// @Param pageSize query int false "页条数"
+// @Param pageIndex query int false "页码"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-club-team [get]
+// @Security Bearer
+func (e OrgClubTeam) GetPage(c *gin.Context) {
+    req := dto.OrgTeamGetPageReq{}
+    s := service.OrgTeam{}
+    err := e.MakeContext(c).
+        MakeOrm().
+        Bind(&req).
+        MakeService(&s.Service).
+        Errors
+   	if err != nil {
+   		e.Logger.Error(err)
+   		e.Error(500, err, err.Error())
+   		return
+   	}
+
+	p := actions.GetPermissionFromContext(c)
+	list := make([]models.OrgTeam, 0)
+	var count int64
+
+	err = s.GetPage(&req, p, &list, &count)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取球队 失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
+}
+
+// GetPage <俱乐部>获取球队比赛列表
+// @Summary <俱乐部>获取球队比赛列表
+// @Description <俱乐部>获取球队比赛列表
+// @Tags <俱乐部>球队
+// @Param pageSize query int false "页条数"
+// @Param pageIndex query int false "页码"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-club-team/get-match [get]
+// @Security Bearer
+func (e OrgClubTeam) GetPageMatch(c *gin.Context) {
+	req := dto.OrgTeamGetPageReq{}
+	s := service.OrgTeam{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	p := actions.GetPermissionFromContext(c)
+	list := make([]models.OrgTeam, 0)
+	var count int64
+
+	err = s.GetPage(&req, p, &list, &count)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取球队 失败,\r\n失败信息 %s", err.Error()))
+		return
+	}
+
+	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
+}
+
+// Get <俱乐部>获取球队比赛详情
+// @Summary <俱乐部>获取球队比赛详情
+// @Description <俱乐部>获取球队比赛详情
+// @Tags <俱乐部>球队
+// @Param id path string false "id"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-club-team/{id} [get]
+// @Security Bearer
+func (e OrgClubTeam) Get(c *gin.Context) {
+	req := dto.OrgTeamGetReq{}
+	s := service.OrgTeam{}
+    err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+	var object models.OrgTeam
+
+	p := actions.GetPermissionFromContext(c)
+	err = s.Get(&req, p, &object)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取球队失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.OK( object, "查询成功")
+}
\ No newline at end of file
diff --git a/app/operate/apis/org_player.go b/app/operate/apis/org_player.go
index 6d2f3c8..885f6f7 100644
--- a/app/operate/apis/org_player.go
+++ b/app/operate/apis/org_player.go
@@ -18,10 +18,10 @@ type OrgPlayer struct {
 	api.Api
 }
 
-// GetPage 获取球员列表
-// @Summary 获取球员列表
-// @Description 获取球员列表
-// @Tags 球员
+// GetPage <球队>获取球员列表
+// @Summary <球队>获取球员列表
+// @Description <球队>获取球员列表
+// @Tags <球队>球员
 // @Param pageSize query int false "页条数"
 // @Param pageIndex query int false "页码"
 // @Success 200 {string} string  "{"code": 200, "data": [...]}"
@@ -54,10 +54,10 @@ func (e OrgPlayer) GetPage(c *gin.Context) {
 	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
 }
 
-// Get 获取球员
-// @Summary 获取球员
-// @Description 获取球员
-// @Tags 球员
+// Get <球队>获取球员
+// @Summary <球队>获取球员
+// @Description <球队>获取球员
+// @Tags <球队>球员
 // @Param id path string false "id"
 // @Success 200 {string} string  "{"code": 200, "data": [...]}"
 // @Router /api/v1/org-player/{id} [get]
@@ -87,10 +87,10 @@ func (e OrgPlayer) Get(c *gin.Context) {
 	e.OK( object, "查询成功")
 }
 
-// Insert 创建球员
-// @Summary 创建球员
-// @Description 创建球员
-// @Tags 球员
+// Insert <球队>创建球员
+// @Summary <球队>创建球员
+// @Description <球队>创建球员
+// @Tags <球队>球员
 // @Accept application/json
 // @Product application/json
 // @Param data body dto.OrgPlayerInsertReq true "data"
@@ -122,10 +122,10 @@ func (e OrgPlayer) Insert(c *gin.Context) {
 	e.OK(req.GetId(), "创建成功")
 }
 
-// Update 修改球员
-// @Summary 修改球员
-// @Description 修改球员
-// @Tags 球员
+// Update <球队>修改球员
+// @Summary <球队>修改球员
+// @Description <球队>修改球员
+// @Tags <球队>球员
 // @Accept application/json
 // @Product application/json
 // @Param data body dto.OrgPlayerUpdateReq true "body"
@@ -156,10 +156,10 @@ func (e OrgPlayer) Update(c *gin.Context) {
 	e.OK( req.GetId(), "修改成功")
 }
 
-// Delete 删除球员
-// @Summary 删除球员
-// @Description 删除球员
-// @Tags 球员
+// Delete <球队>删除球员
+// @Summary <球队>删除球员
+// @Description <球队>删除球员
+// @Tags <球队>球员
 // @Param ids body []int false "ids"
 // @Success 200 {string} string  	"{"code": 200, "message": "删除成功"}"
 // @Router /api/v1/org-player [delete]
diff --git a/app/operate/apis/org_team.go b/app/operate/apis/org_team.go
index 1923ea6..7e57bf2 100644
--- a/app/operate/apis/org_team.go
+++ b/app/operate/apis/org_team.go
@@ -18,10 +18,10 @@ type OrgTeam struct {
 	api.Api
 }
 
-// GetPage 获取球队列表
-// @Summary 获取球队列表
-// @Description 获取球队列表
-// @Tags 球队
+// GetPage <球队>获取球队列表
+// @Summary <球队>获取球队列表
+// @Description <球队>获取球队列表
+// @Tags <球队>球队
 // @Param pageSize query int false "页条数"
 // @Param pageIndex query int false "页码"
 // @Success 200 {string} string  "{"code": 200, "data": [...]}"
@@ -54,10 +54,10 @@ func (e OrgTeam) GetPage(c *gin.Context) {
 	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
 }
 
-// Get 获取球队
-// @Summary 获取球队
-// @Description 获取球队
-// @Tags 球队
+// Get <球队>获取球队
+// @Summary <球队>获取球队
+// @Description <球队>获取球队
+// @Tags <球队>球队
 // @Param id path string false "id"
 // @Success 200 {string} string  "{"code": 200, "data": [...]}"
 // @Router /api/v1/org-team/{id} [get]
@@ -87,10 +87,10 @@ func (e OrgTeam) Get(c *gin.Context) {
 	e.OK( object, "查询成功")
 }
 
-// Insert 创建球队
-// @Summary 创建球队
-// @Description 创建球队
-// @Tags 球队
+// Insert <球队>创建球队
+// @Summary <球队>创建球队
+// @Description <球队>创建球队
+// @Tags <球队>球队
 // @Accept application/json
 // @Product application/json
 // @Param data body dto.OrgTeamInsertReq true "data"
@@ -122,10 +122,10 @@ func (e OrgTeam) Insert(c *gin.Context) {
 	e.OK(req.GetId(), "创建成功")
 }
 
-// Update 修改球队
-// @Summary 修改球队
-// @Description 修改球队
-// @Tags 球队
+// Update <球队>修改球队
+// @Summary <球队>修改球队
+// @Description <球队>修改球队
+// @Tags <球队>球队
 // @Accept application/json
 // @Product application/json
 // @Param data body dto.OrgTeamUpdateReq true "body"
@@ -156,10 +156,10 @@ func (e OrgTeam) Update(c *gin.Context) {
 	e.OK( req.GetId(), "修改成功")
 }
 
-// Delete 删除球队
-// @Summary 删除球队
-// @Description 删除球队
-// @Tags 球队
+// Delete <球队>删除球队
+// @Summary <球队>删除球队
+// @Description <球队>删除球队
+// @Tags <球队>球队
 // @Param ids body []int false "ids"
 // @Success 200 {string} string  	"{"code": 200, "message": "删除成功"}"
 // @Router /api/v1/org-team [delete]
diff --git a/app/operate/apis/org_team_club.go b/app/operate/apis/org_team_club.go
new file mode 100644
index 0000000..d1598dd
--- /dev/null
+++ b/app/operate/apis/org_team_club.go
@@ -0,0 +1,86 @@
+package apis
+
+import (
+    "fmt"
+
+	"github.com/gin-gonic/gin"
+	"github.com/go-admin-team/go-admin-core/sdk/api"
+	"github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth/user"
+	_ "github.com/go-admin-team/go-admin-core/sdk/pkg/response"
+
+	"go-admin/app/operate/models"
+	"go-admin/app/operate/service"
+	"go-admin/app/operate/service/dto"
+	"go-admin/common/actions"
+)
+
+type OrgTeamClub struct {
+	api.Api
+}
+
+// Get <球队>获取俱乐部详情
+// @Summary <球队>获取俱乐部详情
+// @Description <球队>获取俱乐部详情
+// @Tags <球队>俱乐部
+// @Param id path string false "id"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-team-club/{id} [get]
+// @Security Bearer
+func (e OrgTeamClub) Get(c *gin.Context) {
+	req := dto.OrgClubGetReq{}
+	s := service.OrgClub{}
+    err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+	var object models.OrgClub
+
+	p := actions.GetPermissionFromContext(c)
+	err = s.Get(&req, p, &object)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取俱乐部失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.OK( object, "查询成功")
+}
+
+// Update <球队>修改俱乐部
+// @Summary <球队>修改俱乐部
+// @Description <球队>修改俱乐部
+// @Tags <球队>俱乐部
+// @Accept application/json
+// @Product application/json
+// @Param data body dto.OrgClubUpdateReq true "body"
+// @Success 200 {string} string  	"{"code": 200, "message": "修改成功"}"
+// @Router /api/v1/org-team-club/{id} [put]
+// @Security Bearer
+func (e OrgTeamClub) Update(c *gin.Context) {
+    req := dto.OrgClubUpdateReq{}
+    s := service.OrgClub{}
+    err := e.MakeContext(c).
+        MakeOrm().
+        Bind(&req).
+        MakeService(&s.Service).
+        Errors
+    if err != nil {
+        e.Logger.Error(err)
+        e.Error(500, err, err.Error())
+        return
+    }
+	req.SetUpdateBy(user.GetUserId(c))
+	p := actions.GetPermissionFromContext(c)
+
+	err = s.Update(&req, p)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("修改俱乐部 失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+	e.OK( req.GetId(), "修改成功")
+}
\ No newline at end of file
diff --git a/app/operate/apis/org_team_match.go b/app/operate/apis/org_team_match.go
new file mode 100644
index 0000000..c6d2579
--- /dev/null
+++ b/app/operate/apis/org_team_match.go
@@ -0,0 +1,155 @@
+package apis
+
+import (
+    "fmt"
+
+	"github.com/gin-gonic/gin"
+	"github.com/go-admin-team/go-admin-core/sdk/api"
+	"github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth/user"
+	_ "github.com/go-admin-team/go-admin-core/sdk/pkg/response"
+
+	"go-admin/app/operate/models"
+	"go-admin/app/operate/service"
+	"go-admin/app/operate/service/dto"
+	"go-admin/common/actions"
+)
+
+type OrgTeamMatch struct {
+	api.Api
+}
+
+// GetPage <球队>获取比赛列表
+// @Summary <球队>获取比赛列表
+// @Description <球队>获取比赛列表
+// @Tags <球队>比赛
+// @Param pageSize query int false "页条数"
+// @Param pageIndex query int false "页码"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-team-match [get]
+// @Security Bearer
+func (e OrgTeamMatch) GetPage(c *gin.Context) {
+    req := dto.OrgMatchGetPageReq{}
+    s := service.OrgMatch{}
+    err := e.MakeContext(c).
+        MakeOrm().
+        Bind(&req).
+        MakeService(&s.Service).
+        Errors
+   	if err != nil {
+   		e.Logger.Error(err)
+   		e.Error(500, err, err.Error())
+   		return
+   	}
+
+	p := actions.GetPermissionFromContext(c)
+	list := make([]models.OrgMatch, 0)
+	var count int64
+
+	err = s.GetPage(&req, p, &list, &count)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取比赛 失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
+}
+
+// Get <球队>获取比赛所有球员
+// @Summary <球队>获取比赛所有球员
+// @Description <球队>获取比赛所有球员
+// @Tags <球队>比赛
+// @Param id path string false "id"
+// @Success 200 {string} string  {data=models.OrgMatch} "{"code": 200, "data": [...]}"
+// @Router /api/v1/get-players/{id} [get]
+// @Security Bearer
+func (e OrgTeamMatch) GetPlayers(c *gin.Context) {
+	req := dto.OrgMatchGetReq{}
+	s := service.OrgMatch{}
+    err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+	var object models.OrgMatch
+
+	p := actions.GetPermissionFromContext(c)
+	err = s.Get(&req, p, &object)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取比赛失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.OK( object, "查询成功")
+}
+
+// Get <球队>获取比赛已设置球员
+// @Summary <球队>获取比赛已设置球员
+// @Description <球队>获取比赛已设置球员
+// @Tags <球队>比赛
+// @Param id path string false "id"
+// @Success 200 {string} string  {data=models.OrgMatch} "{"code": 200, "data": [...]}"
+// @Router /api/v1/get-players/get-players-is-set/{id} [get]
+// @Security Bearer
+func (e OrgTeamMatch) GetPlayersIsSet(c *gin.Context) {
+	req := dto.OrgMatchGetReq{}
+	s := service.OrgMatch{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+	var object models.OrgMatch
+
+	p := actions.GetPermissionFromContext(c)
+	err = s.Get(&req, p, &object)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取比赛失败,\r\n失败信息 %s", err.Error()))
+		return
+	}
+
+	e.OK( object, "查询成功")
+}
+
+// Update <球队>修改比赛球员
+// @Summary <球队>修改比赛球员
+// @Description <球队>修改比赛球员
+// @Tags <球队>比赛
+// @Accept application/json
+// @Product application/json
+// @Param data body dto.OrgMatchUpdateReq true "body"
+// @Success 200 {string} string  	"{"code": 200, "message": "修改成功"}"
+// @Router /api/v1/get-players/{id} [put]
+// @Security Bearer
+func (e OrgTeamMatch) UpdatePlayers(c *gin.Context) {
+    req := dto.OrgMatchUpdateReq{}
+    s := service.OrgMatch{}
+    err := e.MakeContext(c).
+        MakeOrm().
+        Bind(&req).
+        MakeService(&s.Service).
+        Errors
+    if err != nil {
+        e.Logger.Error(err)
+        e.Error(500, err, err.Error())
+        return
+    }
+	req.SetUpdateBy(user.GetUserId(c))
+	p := actions.GetPermissionFromContext(c)
+
+	err = s.Update(&req, p)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("修改比赛 失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+	e.OK( req.GetId(), "修改成功")
+}
diff --git a/app/operate/apis/org_team_match_evaluate.go b/app/operate/apis/org_team_match_evaluate.go
new file mode 100644
index 0000000..42bffc6
--- /dev/null
+++ b/app/operate/apis/org_team_match_evaluate.go
@@ -0,0 +1,158 @@
+package apis
+
+import (
+    "fmt"
+
+	"github.com/gin-gonic/gin"
+	"github.com/go-admin-team/go-admin-core/sdk/api"
+	"github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth/user"
+	_ "github.com/go-admin-team/go-admin-core/sdk/pkg/response"
+
+	"go-admin/app/operate/models"
+	"go-admin/app/operate/service"
+	"go-admin/app/operate/service/dto"
+	"go-admin/common/actions"
+)
+
+type OrgTeamMatchEvaluate struct {
+	api.Api
+}
+
+// GetPage <球队>教练评价列表
+// @Summary <球队>教练评价列表
+// @Description <球队>教练评价列表
+// @Tags <球队>教练评价
+// @Param pageSize query int false "页条数"
+// @Param pageIndex query int false "页码"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-team-match-evaluate [get]
+// @Security Bearer
+func (e OrgTeamMatchEvaluate) GetPage(c *gin.Context) {
+    req := dto.OrgMatchEvaluateGetPageReq{}
+    s := service.OrgMatchEvaluate{}
+    err := e.MakeContext(c).
+        MakeOrm().
+        Bind(&req).
+        MakeService(&s.Service).
+        Errors
+   	if err != nil {
+   		e.Logger.Error(err)
+   		e.Error(500, err, err.Error())
+   		return
+   	}
+
+	p := actions.GetPermissionFromContext(c)
+	list := make([]models.OrgMatchEvaluate, 0)
+	var count int64
+
+	err = s.GetPage(&req, p, &list, &count)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取比赛球员信息 失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
+}
+
+// GetPage <球队>教练评价比赛列表
+// @Summary <球队>教练评价比赛列表
+// @Description <球队>教练评价比赛列表
+// @Tags <球队>教练评价
+// @Param pageSize query int false "页条数"
+// @Param pageIndex query int false "页码"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-team-match-evaluate/get-match [get]
+// @Security Bearer
+func (e OrgTeamMatchEvaluate) GetPageMatch(c *gin.Context) {
+	req := dto.OrgMatchEvaluateGetPageReq{}
+	s := service.OrgMatchEvaluate{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	p := actions.GetPermissionFromContext(c)
+	list := make([]models.OrgMatchEvaluate, 0)
+	var count int64
+
+	err = s.GetPage(&req, p, &list, &count)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取比赛球员信息 失败,\r\n失败信息 %s", err.Error()))
+		return
+	}
+
+	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
+}
+
+// Get <球队>教练评价比赛详情
+// @Summary <球队>教练评价比赛详情
+// @Description <球队>教练评价比赛详情
+// @Tags <球队>教练评价
+// @Param id path string false "id"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-match-evaluate/{id} [get]
+// @Security Bearer
+func (e OrgTeamMatchEvaluate) Get(c *gin.Context) {
+	req := dto.OrgMatchEvaluateGetReq{}
+	s := service.OrgMatchEvaluate{}
+    err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+	var object models.OrgMatchEvaluate
+
+	p := actions.GetPermissionFromContext(c)
+	err = s.Get(&req, p, &object)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取比赛球员信息失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.OK( object, "查询成功")
+}
+
+// Update <球队>修改评价
+// @Summary <球队>修改评价
+// @Description <球队>修改评价
+// @Tags <球队>教练评价
+// @Accept application/json
+// @Product application/json
+// @Param data body dto.OrgMatchEvaluateUpdateReq true "body"
+// @Success 200 {string} string  	"{"code": 200, "message": "修改成功"}"
+// @Router /api/v1/org-match-evaluate/{id} [put]
+// @Security Bearer
+func (e OrgTeamMatchEvaluate) Update(c *gin.Context) {
+    req := dto.OrgMatchEvaluateUpdateReq{}
+    s := service.OrgMatchEvaluate{}
+    err := e.MakeContext(c).
+        MakeOrm().
+        Bind(&req).
+        MakeService(&s.Service).
+        Errors
+    if err != nil {
+        e.Logger.Error(err)
+        e.Error(500, err, err.Error())
+        return
+    }
+	req.SetUpdateBy(user.GetUserId(c))
+	p := actions.GetPermissionFromContext(c)
+
+	err = s.Update(&req, p)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("修改比赛球员信息 失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+	e.OK( req.GetId(), "修改成功")
+}
diff --git a/app/operate/apis/org_team_player.go b/app/operate/apis/org_team_player.go
new file mode 100644
index 0000000..437c416
--- /dev/null
+++ b/app/operate/apis/org_team_player.go
@@ -0,0 +1,123 @@
+package apis
+
+import (
+	"fmt"
+
+	"github.com/gin-gonic/gin"
+	"github.com/go-admin-team/go-admin-core/sdk/api"
+	_ "github.com/go-admin-team/go-admin-core/sdk/pkg/response"
+
+	"go-admin/app/operate/models"
+	"go-admin/app/operate/service"
+	"go-admin/app/operate/service/dto"
+	"go-admin/common/actions"
+)
+
+type OrgTeamPlayer struct {
+	api.Api
+}
+
+// GetPage <球队>获取球员表现列表
+// @Summary <球队>获取球员表现列表
+// @Description <球队>获取球员表现列表
+// @Tags <球队>球员表现
+// @Param pageSize query int false "页条数"
+// @Param pageIndex query int false "页码"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-team-player [get]
+// @Security Bearer
+func (e OrgTeamPlayer) GetPage(c *gin.Context) {
+    req := dto.OrgPlayerGetPageReq{}
+    s := service.OrgPlayer{}
+    err := e.MakeContext(c).
+        MakeOrm().
+        Bind(&req).
+        MakeService(&s.Service).
+        Errors
+   	if err != nil {
+   		e.Logger.Error(err)
+   		e.Error(500, err, err.Error())
+   		return
+   	}
+
+	p := actions.GetPermissionFromContext(c)
+	list := make([]models.OrgPlayer, 0)
+	var count int64
+
+	err = s.GetPage(&req, p, &list, &count)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取球员 失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
+}
+
+// GetPage <球队>获取球员表现比赛列表
+// @Summary <球队>获取球员表现比赛列表
+// @Description <球队>获取球员表现比赛列表
+// @Tags <球队>球员表现
+// @Param pageSize query int false "页条数"
+// @Param pageIndex query int false "页码"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-team-player/get-match [get]
+// @Security Bearer
+func (e OrgTeamPlayer) GetPageMatch(c *gin.Context) {
+	req := dto.OrgPlayerGetPageReq{}
+	s := service.OrgPlayer{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	p := actions.GetPermissionFromContext(c)
+	list := make([]models.OrgPlayer, 0)
+	var count int64
+
+	err = s.GetPage(&req, p, &list, &count)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取球员 失败,\r\n失败信息 %s", err.Error()))
+		return
+	}
+
+	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
+}
+
+// Get <球队>获取球员表现比赛详情
+// @Summary <球队>获取球员表现比赛详情
+// @Description <球队>获取球员表现比赛详情
+// @Tags <球队>球员表现
+// @Param id path string false "id"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-team-player/{id} [get]
+// @Security Bearer
+func (e OrgTeamPlayer) Get(c *gin.Context) {
+	req := dto.OrgPlayerGetReq{}
+	s := service.OrgPlayer{}
+    err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+	var object models.OrgPlayer
+
+	p := actions.GetPermissionFromContext(c)
+	err = s.Get(&req, p, &object)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取球员失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.OK( object, "查询成功")
+}
diff --git a/app/operate/apis/org_team_team.go b/app/operate/apis/org_team_team.go
new file mode 100644
index 0000000..fd18c2b
--- /dev/null
+++ b/app/operate/apis/org_team_team.go
@@ -0,0 +1,123 @@
+package apis
+
+import (
+	"fmt"
+
+	"github.com/gin-gonic/gin"
+	"github.com/go-admin-team/go-admin-core/sdk/api"
+	_ "github.com/go-admin-team/go-admin-core/sdk/pkg/response"
+
+	"go-admin/app/operate/models"
+	"go-admin/app/operate/service"
+	"go-admin/app/operate/service/dto"
+	"go-admin/common/actions"
+)
+
+type OrgTeamTeam struct {
+	api.Api
+}
+
+// GetPage <球队>获取球队表现列表
+// @Summary <球队>获取球队表现列表
+// @Description <球队>获取球队表现列表
+// @Tags <球队>球队表现
+// @Param pageSize query int false "页条数"
+// @Param pageIndex query int false "页码"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-team-team [get]
+// @Security Bearer
+func (e OrgTeamTeam) GetPage(c *gin.Context) {
+    req := dto.OrgTeamGetPageReq{}
+    s := service.OrgTeam{}
+    err := e.MakeContext(c).
+        MakeOrm().
+        Bind(&req).
+        MakeService(&s.Service).
+        Errors
+   	if err != nil {
+   		e.Logger.Error(err)
+   		e.Error(500, err, err.Error())
+   		return
+   	}
+
+	p := actions.GetPermissionFromContext(c)
+	list := make([]models.OrgTeam, 0)
+	var count int64
+
+	err = s.GetPage(&req, p, &list, &count)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取球队 失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
+}
+
+// GetPage <球队>获取球队表现比赛列表
+// @Summary <球队>获取球队表现比赛列表
+// @Description <球队>获取球队表现比赛列表
+// @Tags <球队>球队表现
+// @Param pageSize query int false "页条数"
+// @Param pageIndex query int false "页码"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-team-team/get-match [get]
+// @Security Bearer
+func (e OrgTeamTeam) GetPageMatch(c *gin.Context) {
+	req := dto.OrgTeamGetPageReq{}
+	s := service.OrgTeam{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	p := actions.GetPermissionFromContext(c)
+	list := make([]models.OrgTeam, 0)
+	var count int64
+
+	err = s.GetPage(&req, p, &list, &count)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取球队 失败,\r\n失败信息 %s", err.Error()))
+		return
+	}
+
+	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
+}
+
+// Get <球队>获取球队表现比赛详情
+// @Summary <球队>获取球队表现比赛详情
+// @Description <球队>获取球队表现比赛详情
+// @Tags <球队>球队表现
+// @Param id path string false "id"
+// @Success 200 {string} string  "{"code": 200, "data": [...]}"
+// @Router /api/v1/org-team-team/{id} [get]
+// @Security Bearer
+func (e OrgTeamTeam) Get(c *gin.Context) {
+	req := dto.OrgTeamGetReq{}
+	s := service.OrgTeam{}
+    err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+	var object models.OrgTeam
+
+	p := actions.GetPermissionFromContext(c)
+	err = s.Get(&req, p, &object)
+	if err != nil {
+		e.Error(500, err, fmt.Sprintf("获取球队失败,\r\n失败信息 %s", err.Error()))
+        return
+	}
+
+	e.OK( object, "查询成功")
+}
diff --git a/app/operate/apis/org_team_user.go b/app/operate/apis/org_team_user.go
index e816bbf..203b644 100644
--- a/app/operate/apis/org_team_user.go
+++ b/app/operate/apis/org_team_user.go
@@ -18,10 +18,10 @@ type OrgTeamUser struct {
 	api.Api
 }
 
-// GetPage 获取球队人员账户信息列表
-// @Summary 获取球队人员账户信息列表
-// @Description 获取球队人员账户信息列表
-// @Tags 球队人员账户信息
+// GetPage <球队>工作人员列表
+// @Summary <球队>工作人员列表
+// @Description <球队>工作人员列表
+// @Tags <球队>工作人员
 // @Param pageSize query int false "页条数"
 // @Param pageIndex query int false "页码"
 // @Success 200 {string} string  "{"code": 200, "data": [...]}"
@@ -54,10 +54,10 @@ func (e OrgTeamUser) GetPage(c *gin.Context) {
 	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
 }
 
-// Get 获取球队人员账户信息
-// @Summary 获取球队人员账户信息
-// @Description 获取球队人员账户信息
-// @Tags 球队人员账户信息
+// Get <球队>工作人员信息
+// @Summary <球队>工作人员信息
+// @Description <球队>工作人员信息
+// @Tags <球队>工作人员
 // @Param id path string false "id"
 // @Success 200 {string} string "{"code": 200, "data": [...]}"
 // @Router /api/v1/org-team-user/{id} [get]
@@ -87,10 +87,10 @@ func (e OrgTeamUser) Get(c *gin.Context) {
 	e.OK( object, "查询成功")
 }
 
-// Insert 创建球队人员账户信息
-// @Summary 创建球队人员账户信息
-// @Description 创建球队人员账户信息
-// @Tags 球队人员账户信息
+// Insert <球队>创建工作人员
+// @Summary <球队>创建工作人员
+// @Description <球队>创建工作人员
+// @Tags <球队>工作人员
 // @Accept application/json
 // @Product application/json
 // @Param data body dto.OrgTeamUserInsertReq true "data"
@@ -122,10 +122,10 @@ func (e OrgTeamUser) Insert(c *gin.Context) {
 	e.OK(req.GetId(), "创建成功")
 }
 
-// Update 修改球队人员账户信息
-// @Summary 修改球队人员账户信息
-// @Description 修改球队人员账户信息
-// @Tags 球队人员账户信息
+// Update <球队>修改工作人员
+// @Summary <球队>修改工作人员
+// @Description <球队>修改工作人员
+// @Tags <球队>工作人员
 // @Accept application/json
 // @Product application/json
 // @Param data body dto.OrgTeamUserUpdateReq true "body"
@@ -156,10 +156,10 @@ func (e OrgTeamUser) Update(c *gin.Context) {
 	e.OK( req.GetId(), "修改成功")
 }
 
-// Delete 删除球队人员账户信息
-// @Summary 删除球队人员账户信息
-// @Description 删除球队人员账户信息
-// @Tags 球队人员账户信息
+// Delete <球队>删除工作人员
+// @Summary <球队>删除工作人员
+// @Description <球队>删除工作人员
+// @Tags <球队>工作人员
 // @Param ids body []int false "ids"
 // @Success 200 {string} string  	"{"code": 200, "message": "删除成功"}"
 // @Router /api/v1/org-team-user [delete]
diff --git a/app/operate/apis/org_user.go b/app/operate/apis/org_user.go
new file mode 100644
index 0000000..9ae5e94
--- /dev/null
+++ b/app/operate/apis/org_user.go
@@ -0,0 +1,453 @@
+package apis
+
+import (
+	"github.com/gin-gonic/gin/binding"
+	"go-admin/app/admin/models"
+	"net/http"
+
+	"github.com/gin-gonic/gin"
+	"github.com/go-admin-team/go-admin-core/sdk/api"
+	"github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth/user"
+	_ "github.com/go-admin-team/go-admin-core/sdk/pkg/response"
+	"github.com/google/uuid"
+
+	"go-admin/app/admin/service"
+	"go-admin/app/admin/service/dto"
+	"go-admin/common/actions"
+)
+
+type SysUser struct {
+	api.Api
+}
+
+// GetPage
+// @Summary 列表用户信息数据
+// @Description 获取JSON
+// @Tags 用户
+// @Param username query string false "username"
+// @Success 200 {string} {object} response.Response "{"code": 200, "data": [...]}"
+// @Router /api/v1/sys-user [get]
+// @Security Bearer
+func (e SysUser) GetPage(c *gin.Context) {
+	s := service.SysUser{}
+	req :=dto.SysUserGetPageReq{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	//数据权限检查
+	p := actions.GetPermissionFromContext(c)
+
+	list := make([]models.SysUser, 0)
+	var count int64
+
+	err = s.GetPage(&req, p, &list, &count)
+	if err != nil {
+		e.Error(500, err, "查询失败")
+		return
+	}
+
+	e.PageOK(list, int(count), req.GetPageIndex(), req.GetPageSize(), "查询成功")
+}
+
+// Get
+// @Summary 获取用户
+// @Description 获取JSON
+// @Tags 用户
+// @Param userId path int true "用户编码"
+// @Success 200 {string} string   "{"code": 200, "data": [...]}"
+// @Router /api/v1/sys-user/{userId} [get]
+// @Security Bearer
+func (e SysUser) Get(c *gin.Context) {
+	s := service.SysUser{}
+	req :=dto.SysUserById{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req, nil).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+	var object models.SysUser
+	//数据权限检查
+	p := actions.GetPermissionFromContext(c)
+	err = s.Get(&req, p, &object)
+	if err != nil {
+		e.Error(http.StatusUnprocessableEntity, err, "查询失败")
+		return
+	}
+	e.OK(object, "查询成功")
+}
+
+// Insert
+// @Summary 创建用户
+// @Description 获取JSON
+// @Tags 用户
+// @Accept  application/json
+// @Product application/json
+// @Param data body dto.SysUserInsertReq true "用户数据"
+// @Success 200 {string} string   "{"code": 200, "data": [...]}"
+// @Router /api/v1/sys-user [post]
+// @Security Bearer
+func (e SysUser) Insert(c *gin.Context) {
+	s := service.SysUser{}
+	req :=dto.SysUserInsertReq{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req, binding.JSON).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+	// 设置创建人
+	req.SetCreateBy(user.GetUserId(c))
+	err = s.Insert(&req)
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	e.OK(req.GetId(), "创建成功")
+}
+
+// Update
+// @Summary 修改用户数据
+// @Description 获取JSON
+// @Tags 用户
+// @Accept  application/json
+// @Product application/json
+// @Param data body dto.SysUserUpdateReq true "body"
+// @Success 200 {string} string   "{"code": 200, "data": [...]}"
+// @Router /api/v1/sys-user/{userId} [put]
+// @Security Bearer
+func (e SysUser) Update(c *gin.Context) {
+	s := service.SysUser{}
+	req :=dto.SysUserUpdateReq{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	req.SetUpdateBy(user.GetUserId(c))
+
+	//数据权限检查
+	p := actions.GetPermissionFromContext(c)
+
+	err = s.Update(&req, p)
+	if err != nil {
+		e.Logger.Error(err)
+		return
+	}
+	e.OK(req.GetId(), "更新成功")
+}
+
+// Delete
+// @Summary 删除用户数据
+// @Description 删除数据
+// @Tags 用户
+// @Param userId path int true "userId"
+// @Success 200 {string} string   "{"code": 200, "data": [...]}"
+// @Router /api/v1/sys-user/{userId} [delete]
+// @Security Bearer
+func (e SysUser) Delete(c *gin.Context) {
+	s := service.SysUser{}
+	req :=dto.SysUserById{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req, binding.JSON).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	// 设置编辑人
+	req.SetUpdateBy(user.GetUserId(c))
+
+	// 数据权限检查
+	p := actions.GetPermissionFromContext(c)
+
+	err = s.Remove(&req, p)
+	if err != nil {
+		e.Logger.Error(err)
+		return
+	}
+	e.OK(req.GetId(), "删除成功")
+}
+
+// InsetAvatar
+// @Summary 修改头像
+// @Description 获取JSON
+// @Tags 个人中心
+// @Accept multipart/form-data
+// @Param file formData file true "file"
+// @Success 200 {string} string   "{"code": 200, "data": [...]}"
+// @Router /api/v1/user/avatar [post]
+// @Security Bearer
+func (e SysUser) InsetAvatar(c *gin.Context) {
+	s := service.SysUser{}
+	req :=dto.UpdateSysUserAvatarReq{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+	// 数据权限检查
+	p := actions.GetPermissionFromContext(c)
+	form, _ := c.MultipartForm()
+	files := form.File["upload[]"]
+	guid := uuid.New().String()
+	filPath := "static/uploadfile/" + guid + ".jpg"
+	for _, file := range files {
+		e.Logger.Debugf("upload avatar file: %s", file.Filename)
+		// 上传文件至指定目录
+		err = c.SaveUploadedFile(file, filPath)
+		if err != nil {
+			e.Logger.Errorf("save file error, %s", err.Error())
+			e.Error(500, err, "")
+			return
+		}
+	}
+	req.UserId = p.UserId
+	req.Avatar = "/" + filPath
+
+	err = s.UpdateAvatar(&req, p)
+	if err != nil {
+		e.Logger.Error(err)
+		return
+	}
+	e.OK(filPath, "修改成功")
+}
+
+// UpdateStatus 修改用户状态
+// @Summary 修改用户状态
+// @Description 获取JSON
+// @Tags 用户
+// @Accept  application/json
+// @Product application/json
+// @Param data body dto.UpdateSysUserStatusReq true "body"
+// @Success 200 {string} string   "{"code": 200, "data": [...]}"
+// @Router /api/v1/user/status [put]
+// @Security Bearer
+func (e SysUser) UpdateStatus(c *gin.Context) {
+	s := service.SysUser{}
+	req :=dto.UpdateSysUserStatusReq{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req, binding.JSON, nil).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	req.SetUpdateBy(user.GetUserId(c))
+
+	//数据权限检查
+	p := actions.GetPermissionFromContext(c)
+
+	err = s.UpdateStatus(&req, p)
+	if err != nil {
+		e.Logger.Error(err)
+		return
+	}
+	e.OK(req.GetId(), "更新成功")
+}
+
+// ResetPwd 重置用户密码
+// @Summary 重置用户密码
+// @Description 获取JSON
+// @Tags 用户
+// @Accept  application/json
+// @Product application/json
+// @Param data body dto.ResetSysUserPwdReq true "body"
+// @Success 200 {string} string   "{"code": 200, "data": [...]}"
+// @Router /api/v1/user/pwd/reset [put]
+// @Security Bearer
+func (e SysUser) ResetPwd(c *gin.Context) {
+	s := service.SysUser{}
+	req :=dto.ResetSysUserPwdReq{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req, binding.JSON).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	req.SetUpdateBy(user.GetUserId(c))
+
+	//数据权限检查
+	p := actions.GetPermissionFromContext(c)
+
+	err = s.ResetPwd(&req, p)
+	if err != nil {
+		e.Logger.Error(err)
+		return
+	}
+	e.OK(req.GetId(), "更新成功")
+}
+
+// UpdatePwd
+// @Summary 重置密码
+// @Description 获取JSON
+// @Tags 用户
+// @Accept  application/json
+// @Product application/json
+// @Param data body dto.PassWord true "body"
+// @Success 200 {string} string   "{"code": 200, "data": [...]}"
+// @Router /api/v1/user/pwd/set [put]
+// @Security Bearer
+func (e SysUser) UpdatePwd(c *gin.Context) {
+	s := service.SysUser{}
+	req :=dto.PassWord{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		Bind(&req).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	// 数据权限检查
+	p := actions.GetPermissionFromContext(c)
+
+	err = s.UpdatePwd(user.GetUserId(c), req.OldPassword, req.NewPassword, p)
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(http.StatusForbidden, err, "密码修改失败")
+		return
+	}
+	e.OK(nil, "密码修改成功")
+}
+
+// GetProfile
+// @Summary 获取个人中心用户
+// @Description 获取JSON
+// @Tags 个人中心
+// @Success 200 {string} string   "{"code": 200, "data": [...]}"
+// @Router /api/v1/user/profile [get]
+// @Security Bearer
+func (e SysUser) GetProfile(c *gin.Context) {
+	s := service.SysUser{}
+	req :=dto.SysUserById{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+
+	req.Id = user.GetUserId(c)
+
+	sysUser := models.SysUser{}
+	roles := make([]models.SysRole, 0)
+	posts := make([]models.SysPost, 0)
+	err = s.GetProfile(&req, &sysUser, &roles, &posts)
+	if err != nil {
+		e.Logger.Errorf("get user profile error, %s", err.Error())
+		e.Error(500, err, "获取用户信息失败")
+		return
+	}
+	e.OK(gin.H{
+		"user":  sysUser,
+		"roles": roles,
+		"posts": posts,
+	}, "查询成功")
+}
+
+// GetInfo
+// @Summary 获取个人信息
+// @Description 获取JSON
+// @Tags 个人中心
+// @Success 200 {string} string   "{"code": 200, "data": [...]}"
+// @Router /api/v1/getinfo [get]
+// @Security Bearer
+func (e SysUser) GetInfo(c *gin.Context) {
+	req :=dto.SysUserById{}
+	s := service.SysUser{}
+	r := service.SysRole{}
+	err := e.MakeContext(c).
+		MakeOrm().
+		MakeService(&r.Service).
+		MakeService(&s.Service).
+		Errors
+	if err != nil {
+		e.Logger.Error(err)
+		e.Error(500, err, err.Error())
+		return
+	}
+	p := actions.GetPermissionFromContext(c)
+	var roles = make([]string, 1)
+	roles[0] = user.GetRoleName(c)
+	var permissions = make([]string, 1)
+	permissions[0] = "*:*:*"
+	var buttons = make([]string, 1)
+	buttons[0] = "*:*:*"
+
+	var mp = make(map[string]interface{})
+	mp["roles"] = roles
+	if user.GetRoleName(c) == "admin" || user.GetRoleName(c) == "系统管理员" {
+		mp["permissions"] = permissions
+		mp["buttons"] = buttons
+	} else {
+		list, _ := r.GetById(user.GetRoleId(c))
+		mp["permissions"] = list
+		mp["buttons"] = list
+	}
+	sysUser := models.SysUser{}
+	req.Id = user.GetUserId(c)
+	err = s.Get(&req, p, &sysUser)
+	if err != nil {
+		e.Error(http.StatusUnauthorized, err, "登录失败")
+		return
+	}
+	mp["introduction"] = " am a super administrator"
+	mp["avatar"] = "https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif"
+	if sysUser.Avatar != "" {
+		mp["avatar"] = sysUser.Avatar
+	}
+	mp["userName"] = sysUser.NickName
+	mp["userId"] = sysUser.UserId
+	mp["deptId"] = sysUser.DeptId
+	mp["name"] = sysUser.NickName
+	mp["code"] = 200
+	e.OK(mp, "")
+}
\ No newline at end of file
diff --git a/app/operate/router/org_club_player.go b/app/operate/router/org_club_player.go
new file mode 100644
index 0000000..6adb00f
--- /dev/null
+++ b/app/operate/router/org_club_player.go
@@ -0,0 +1,24 @@
+package router
+
+import (
+	"github.com/gin-gonic/gin"
+	jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
+
+	"go-admin/app/operate/apis"
+	"go-admin/common/middleware"
+)
+
+func init() {
+	routerCheckRole = append(routerCheckRole, registerOrgClubPlayerRouter)
+}
+
+// registerOrgClubPlayerRouter
+func registerOrgClubPlayerRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
+	api := apis.OrgClubPlayer{}
+	r := v1.Group("/org-club-player").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole())
+	{
+		r.GET("", api.GetPage)
+		r.GET("get-match", api.GetPageMatch)
+		r.GET("/:id", api.Get)
+	}
+}
\ No newline at end of file
diff --git a/app/operate/router/org_club_team.go b/app/operate/router/org_club_team.go
new file mode 100644
index 0000000..9113200
--- /dev/null
+++ b/app/operate/router/org_club_team.go
@@ -0,0 +1,24 @@
+package router
+
+import (
+	"github.com/gin-gonic/gin"
+	jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
+
+	"go-admin/app/operate/apis"
+	"go-admin/common/middleware"
+)
+
+func init() {
+	routerCheckRole = append(routerCheckRole, registerOrgClubTeamRouter)
+}
+
+// registerOrgClubTeamRouter
+func registerOrgClubTeamRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
+	api := apis.OrgClubTeam{}
+	r := v1.Group("/org-club-team").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole())
+	{
+		r.GET("", api.GetPage)
+		r.GET("get-match", api.GetPageMatch)
+		r.GET("/:id", api.Get)
+	}
+}
\ No newline at end of file
diff --git a/app/operate/router/org_club_user.go b/app/operate/router/org_team_club.go
similarity index 50%
rename from app/operate/router/org_club_user.go
rename to app/operate/router/org_team_club.go
index 158bdb6..584ded3 100644
--- a/app/operate/router/org_club_user.go
+++ b/app/operate/router/org_team_club.go
@@ -9,18 +9,15 @@ import (
 )
 
 func init() {
-	routerCheckRole = append(routerCheckRole, registerOrgClubUserRouter)
+	routerCheckRole = append(routerCheckRole, registerOrgTeamClubRouter)
 }
 
-// registerOrgClubUserRouter
-func registerOrgClubUserRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
-	api := apis.OrgClubUser{}
-	r := v1.Group("/org-club-user").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole())
+// registerOrgTeamClubRouter
+func registerOrgTeamClubRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
+	api := apis.OrgTeamClub{}
+	r := v1.Group("/org-team-club").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole())
 	{
-		r.GET("", api.GetPage)
 		r.GET("/:id", api.Get)
-		r.POST("", api.Insert)
 		r.PUT("/:id", api.Update)
-		r.DELETE("", api.Delete)
 	}
 }
\ No newline at end of file
diff --git a/app/operate/router/org_team_match.go b/app/operate/router/org_team_match.go
new file mode 100644
index 0000000..1d45635
--- /dev/null
+++ b/app/operate/router/org_team_match.go
@@ -0,0 +1,25 @@
+package router
+
+import (
+	"github.com/gin-gonic/gin"
+	jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
+
+	"go-admin/app/operate/apis"
+	"go-admin/common/middleware"
+)
+
+func init() {
+	routerCheckRole = append(routerCheckRole, registerOrgTeamMatchRouter)
+}
+
+// registerOrgTeamMatchRouter
+func registerOrgTeamMatchRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
+	api := apis.OrgTeamMatch{}
+	r := v1.Group("/org-team-match").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole())
+	{
+		r.GET("", api.GetPage)
+		r.GET("/:id", api.GetPlayers)
+		r.GET("/get-players-is-set/:id", api.GetPlayersIsSet)
+		r.PUT("/:id", api.UpdatePlayers)
+	}
+}
\ No newline at end of file
diff --git a/app/operate/router/org_team_match_evaluate.go b/app/operate/router/org_team_match_evaluate.go
new file mode 100644
index 0000000..4e09db8
--- /dev/null
+++ b/app/operate/router/org_team_match_evaluate.go
@@ -0,0 +1,25 @@
+package router
+
+import (
+	"github.com/gin-gonic/gin"
+	jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
+
+	"go-admin/app/operate/apis"
+	"go-admin/common/middleware"
+)
+
+func init() {
+	routerCheckRole = append(routerCheckRole, registerOrgTeamMatchEvaluateRouter)
+}
+
+// registerOrgTeamMatchEvaluateRouter
+func registerOrgTeamMatchEvaluateRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
+	api := apis.OrgTeamMatchEvaluate{}
+	r := v1.Group("/org-team-match-evaluate").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole())
+	{
+		r.GET("", api.GetPage)
+		r.GET("/get-match", api.GetPageMatch)
+		r.GET("/:id", api.Get)
+		r.PUT("/:id", api.Update)
+	}
+}
\ No newline at end of file
diff --git a/app/operate/router/org_team_player.go b/app/operate/router/org_team_player.go
new file mode 100644
index 0000000..f8f23dc
--- /dev/null
+++ b/app/operate/router/org_team_player.go
@@ -0,0 +1,24 @@
+package router
+
+import (
+	"github.com/gin-gonic/gin"
+	jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
+
+	"go-admin/app/operate/apis"
+	"go-admin/common/middleware"
+)
+
+func init() {
+	routerCheckRole = append(routerCheckRole, registerOrgTeamPlayerRouter)
+}
+
+// registerOrgTeamPlayerRouter
+func registerOrgTeamPlayerRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
+	api := apis.OrgTeamPlayer{}
+	r := v1.Group("/org-team-player").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole())
+	{
+		r.GET("", api.GetPage)
+		r.GET("get-match", api.GetPageMatch)
+		r.GET("/:id", api.Get)
+	}
+}
\ No newline at end of file
diff --git a/app/operate/router/org_team_team.go b/app/operate/router/org_team_team.go
new file mode 100644
index 0000000..13f1d9f
--- /dev/null
+++ b/app/operate/router/org_team_team.go
@@ -0,0 +1,24 @@
+package router
+
+import (
+	"github.com/gin-gonic/gin"
+	jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
+
+	"go-admin/app/operate/apis"
+	"go-admin/common/middleware"
+)
+
+func init() {
+	routerCheckRole = append(routerCheckRole, registerOrgTeamTeamRouter)
+}
+
+// registerOrgTeamTeamRouter
+func registerOrgTeamTeamRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
+	api := apis.OrgTeamTeam{}
+	r := v1.Group("/org-team-team").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole())
+	{
+		r.GET("", api.GetPage)
+		r.GET("get-match", api.GetPageMatch)
+		r.GET("/:id", api.Get)
+	}
+}
\ No newline at end of file
diff --git a/app/operate/router/org_user.go b/app/operate/router/org_user.go
new file mode 100644
index 0000000..4a545a6
--- /dev/null
+++ b/app/operate/router/org_user.go
@@ -0,0 +1,39 @@
+package router
+
+import (
+	"github.com/gin-gonic/gin"
+	jwt "github.com/go-admin-team/go-admin-core/sdk/pkg/jwtauth"
+	"go-admin/app/admin/apis"
+	"go-admin/common/actions"
+	"go-admin/common/middleware"
+)
+
+func init() {
+	routerCheckRole = append(routerCheckRole, registerSysUserRouter)
+}
+
+// 需认证的路由代码
+func registerSysUserRouter(v1 *gin.RouterGroup, authMiddleware *jwt.GinJWTMiddleware) {
+	api := apis.SysUser{}
+	r := v1.Group("/sys-user").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole()).Use(actions.PermissionAction())
+	{
+		r.GET("", api.GetPage)
+		r.GET("/:id", api.Get)
+		r.POST("", api.Insert)
+		r.PUT("", api.Update)
+		r.DELETE("", api.Delete)
+	}
+
+	user := v1.Group("/user").Use(authMiddleware.MiddlewareFunc()).Use(middleware.AuthCheckRole()).Use(actions.PermissionAction())
+	{
+		user.GET("/profile", api.GetProfile)
+		user.POST("/avatar", api.InsetAvatar)
+		user.PUT("/pwd/set", api.UpdatePwd)
+		user.PUT("/pwd/reset", api.ResetPwd)
+		user.PUT("/status", api.UpdateStatus)
+	}
+	v1auth := v1.Group("").Use(authMiddleware.MiddlewareFunc())
+	{
+		v1auth.GET("/getinfo", api.GetInfo)
+	}
+}
\ No newline at end of file
-- 
2.18.1