From d82fe39a175990a9b1e0e6af171199dce975f1fe Mon Sep 17 00:00:00 2001 From: Liujian <824010343@qq.com> Date: Fri, 16 Aug 2024 20:55:16 +0800 Subject: [PATCH] =?UTF-8?q?APIPark=E8=AE=BF=E5=AE=A2=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- controller/my_team/iml.go | 10 ++-- controller/my_team/team.go | 3 +- .../src/contexts/GlobalStateContext.tsx | 15 +++++- .../core/src/pages/system/SystemConfig.tsx | 5 +- .../core/src/pages/system/SystemList.tsx | 2 +- .../src/pages/serviceHub/ServiceHubDetail.tsx | 2 - .../management/ServiceHubManagement.tsx | 2 +- go.mod | 3 +- go.sum | 4 +- module/my-team/iml.go | 36 ++++++++++++- module/my-team/team.go | 8 +-- module/permit/team/iml.go | 53 ++++++++++--------- plugins/core/core.go | 33 ++++++------ plugins/core/my-team.go | 3 +- plugins/core/partition.go | 17 ------ resources/access/access.yaml | 2 - 16 files changed, 117 insertions(+), 81 deletions(-) delete mode 100644 plugins/core/partition.go diff --git a/controller/my_team/iml.go b/controller/my_team/iml.go index a5438e8f..bbe9bccb 100644 --- a/controller/my_team/iml.go +++ b/controller/my_team/iml.go @@ -14,6 +14,10 @@ type imlTeamController struct { module my_team.ITeamModule `autowired:""` } +func (c *imlTeamController) SimpleTeams(ctx *gin.Context, keyword string) ([]*team_dto.SimpleTeam, error) { + return c.module.SimpleTeams(ctx, keyword) +} + func (c *imlTeamController) UpdateMemberRole(ctx *gin.Context, id string, input *team_dto.UpdateMemberRole) error { return c.module.UpdateMemberRole(ctx, id, input) } @@ -23,7 +27,7 @@ func (c *imlTeamController) GetTeam(ctx *gin.Context, id string) (*team_dto.Team } func (c *imlTeamController) Search(ctx *gin.Context, keyword string) ([]*team_dto.Item, error) { - + return c.module.Search(ctx, keyword) } @@ -31,8 +35,8 @@ func (c *imlTeamController) EditTeam(ctx *gin.Context, id string, team *team_dto return c.module.Edit(ctx, id, team) } -func (c *imlTeamController) SimpleTeams(ctx *gin.Context, keyword string) ([]*team_dto.SimpleTeam, error) { - return c.module.SimpleTeams(ctx, keyword) +func (c *imlTeamController) MySimpleTeams(ctx *gin.Context, keyword string) ([]*team_dto.SimpleTeam, error) { + return c.module.MySimpleTeams(ctx, keyword) } func (c *imlTeamController) AddMember(ctx *gin.Context, id string, users *team_dto.UserIDs) error { diff --git a/controller/my_team/team.go b/controller/my_team/team.go index a755f67c..d6de899c 100644 --- a/controller/my_team/team.go +++ b/controller/my_team/team.go @@ -2,7 +2,7 @@ package my_team import ( "reflect" - + team_dto "github.com/APIParkLab/APIPark/module/my-team/dto" "github.com/eolinker/go-common/autowire" "github.com/gin-gonic/gin" @@ -13,6 +13,7 @@ type ITeamController interface { GetTeam(ctx *gin.Context, id string) (*team_dto.Team, error) Search(ctx *gin.Context, keyword string) ([]*team_dto.Item, error) EditTeam(ctx *gin.Context, id string, team *team_dto.EditTeam) (*team_dto.Team, error) + MySimpleTeams(ctx *gin.Context, keyword string) ([]*team_dto.SimpleTeam, error) SimpleTeams(ctx *gin.Context, keyword string) ([]*team_dto.SimpleTeam, error) AddMember(ctx *gin.Context, id string, users *team_dto.UserIDs) error RemoveMember(ctx *gin.Context, id string, uuid string) error diff --git a/frontend/packages/common/src/contexts/GlobalStateContext.tsx b/frontend/packages/common/src/contexts/GlobalStateContext.tsx index 287bf3c2..d9c0480f 100644 --- a/frontend/packages/common/src/contexts/GlobalStateContext.tsx +++ b/frontend/packages/common/src/contexts/GlobalStateContext.tsx @@ -109,17 +109,22 @@ export const GlobalProvider: FC<{children:ReactNode}> = ({ children }) => { const [pluginAccessDictionary, setPluginAccessDictionary] = useState<{[k:string]:string}>({}) const [teamDataFlushed, setTeamDataFlushed] = useState(false) const [accessInit, setAccessInit] = useState(false) + let getGlobalAccessPromise: Promise> | null = null const getGlobalAccessData = ()=>{ - fetchData>('profile/permission/system',{method:'GET'},).then(response=>{ + getGlobalAccessPromise = new Promise((resolve, reject) => fetchData>('profile/permission/system',{method:'GET'},).then(response=>{ const {code,data,msg} = response if(code === STATUS_CODE.SUCCESS){ setAccessInit(true) setAccessData(prevData => new Map(prevData).set('system', data.access)) + resolve(data.response) }else{ message.error(msg || '操作失败') + reject(data.msg || '操作失败') } }) + ) + return getGlobalAccessData } const getTeamAccessData = (teamId:string)=>{ @@ -149,7 +154,13 @@ export const GlobalProvider: FC<{children:ReactNode}> = ({ children }) => { setPluginAccessDictionary({}) } - const checkPermission = (access:keyof typeof PERMISSION_DEFINITION[0] | Array)=>{ + const checkPermission = async (access:keyof typeof PERMISSION_DEFINITION[0] | Array)=>{ + if( !accessInit && getGlobalAccessPromise){ + await getGlobalAccessPromise + } + if( !accessInit && !getGlobalAccessPromise){ + await getGlobalAccessData() + } let revs = false; if (Array.isArray(access)) { revs = access.some(item => checkAccess(item, accessData)); diff --git a/frontend/packages/core/src/pages/system/SystemConfig.tsx b/frontend/packages/core/src/pages/system/SystemConfig.tsx index a70b99bd..21c6bd34 100644 --- a/frontend/packages/core/src/pages/system/SystemConfig.tsx +++ b/frontend/packages/core/src/pages/system/SystemConfig.tsx @@ -20,6 +20,7 @@ import { getImgBase64 } from "@common/utils/dataTransfer.ts"; import { CategorizesType } from "@market/const/serviceHub/type.ts"; import WithPermission from "@common/components/aoplatform/WithPermission.tsx"; import { Icon } from "@iconify/react/dist/iconify.js"; +import { useGlobalContext } from "@common/contexts/GlobalStateContext.tsx"; const MAX_SIZE = 2 * 1024; // 1KB @@ -38,6 +39,7 @@ const SystemConfig = forwardRef((_,ref) => { const [tagOptionList, setTagOptionList] = useState([]) const [serviceClassifyOptionList, setServiceClassifyOptionList] = useState() const [uploadLoading, setUploadLoading] = useState(false) + const {checkPermission} = useGlobalContext() useImperativeHandle(ref, () => ({ save:onFinish @@ -157,7 +159,8 @@ const SystemConfig = forwardRef((_,ref) => { const getTeamOptionList = ()=>{ setTeamOptionList([]) - fetchData>('simple/teams/mine',{method:'GET',eoTransformKeys:['available_partitions']}).then(response=>{ + + fetchData>(!checkPermission('system.workspace.team.view_all') ?'simple/teams/mine' :'simple/teams',{method:'GET',eoTransformKeys:[]}).then(response=>{ const {code,data,msg} = response if(code === STATUS_CODE.SUCCESS){ setTeamOptionList(data.teams?.map((x:MemberItem)=>{return {...x, diff --git a/frontend/packages/core/src/pages/system/SystemList.tsx b/frontend/packages/core/src/pages/system/SystemList.tsx index 3a6bbf77..d119387f 100644 --- a/frontend/packages/core/src/pages/system/SystemList.tsx +++ b/frontend/packages/core/src/pages/system/SystemList.tsx @@ -55,7 +55,7 @@ const SystemList:FC = ()=>{ } const getTeamsList = ()=>{ - fetchData>('simple/teams/mine',{method:'GET'}).then(response=>{ + fetchData>(!checkPermission('system.workspace.team.view_all') ?'simple/teams/mine' :'simple/teams',{method:'GET',eoTransformKeys:[]}).then(response=>{ const {code,data,msg} = response setTeamList(data.teams) if(code === STATUS_CODE.SUCCESS){ diff --git a/frontend/packages/market/src/pages/serviceHub/ServiceHubDetail.tsx b/frontend/packages/market/src/pages/serviceHub/ServiceHubDetail.tsx index ed1ee262..5f3b16dd 100644 --- a/frontend/packages/market/src/pages/serviceHub/ServiceHubDetail.tsx +++ b/frontend/packages/market/src/pages/serviceHub/ServiceHubDetail.tsx @@ -11,12 +11,10 @@ import { EntityItem } from "@common/const/type.ts"; import { ApplyServiceModal } from "./ApplyServiceModal.tsx"; import ServiceHubApiDocument from "./ServiceHubApiDocument.tsx"; import { ApiFilled, ArrowLeftOutlined, LeftOutlined } from "@ant-design/icons"; -import { Typography } from 'antd'; import { SimpleSystemItem } from "@core/const/system/type.ts"; import { Icon } from "@iconify/react/dist/iconify.js"; import DOMPurify from 'dompurify'; -const { Title, Text } = Typography; const ServiceHubDetail = ()=>{ const {serviceId} = useParams(); diff --git a/frontend/packages/market/src/pages/serviceHub/management/ServiceHubManagement.tsx b/frontend/packages/market/src/pages/serviceHub/management/ServiceHubManagement.tsx index e92c0e68..0501c20b 100644 --- a/frontend/packages/market/src/pages/serviceHub/management/ServiceHubManagement.tsx +++ b/frontend/packages/market/src/pages/serviceHub/management/ServiceHubManagement.tsx @@ -51,7 +51,7 @@ const getServiceList = ()=>{ const getTeamsList = ()=>{ setPageLoading(true) - fetchData>('simple/teams/mine',{method:'GET',eoTransformKeys:['app_num','subscribe_num']}).then(response=>{ + fetchData>(!checkPermission('system.workspace.team.view_all') ?'simple/teams/mine' :'simple/teams',{method:'GET',eoTransformKeys:['app_num','subscribe_num']}).then(response=>{ const {code,data,msg} = response if(code === STATUS_CODE.SUCCESS){ setTeamList(data.teams.map((x:SimpleTeamItem)=>({label:
{x.name}{x.appNum || 0}
, key:x.id}))) diff --git a/go.mod b/go.mod index 19638c39..c667d359 100644 --- a/go.mod +++ b/go.mod @@ -7,7 +7,7 @@ go 1.21 require ( github.com/eolinker/ap-account v1.0.9 github.com/eolinker/eosc v0.17.3 - github.com/eolinker/go-common v1.0.2 + github.com/eolinker/go-common v1.0.4 github.com/gabriel-vasile/mimetype v1.4.4 github.com/gin-gonic/gin v1.10.0 github.com/google/uuid v1.6.0 @@ -67,3 +67,4 @@ require ( ) //replace github.com/eolinker/ap-account => ../../eolinker/ap-account +//replace github.com/eolinker/go-common => ../../eolinker/go-common diff --git a/go.sum b/go.sum index 9f4cf436..813d7dc4 100644 --- a/go.sum +++ b/go.sum @@ -27,8 +27,8 @@ github.com/eolinker/ap-account v1.0.9 h1:tW345b1wsn0V8pfMMlZOMfpbjxQhMWBVfgsClFT github.com/eolinker/ap-account v1.0.9/go.mod h1:5lsZwkQfnHO5YJ3Cu6X1PZwZ0gbmJBUcix0hxG8aEsY= github.com/eolinker/eosc v0.17.3 h1:sr2yT+v/AsqEdciRaaZZj0zL9pTufR5RvDW6+65hraQ= github.com/eolinker/eosc v0.17.3/go.mod h1:xgq816hpanlMXFtZw7Ztdctb1eEk9UPHchY4NfFO6Cw= -github.com/eolinker/go-common v1.0.2 h1:rGxcrDdHr+mtMHVPdz3tx7oOsKLo0Msy6W0U1ZNsXaQ= -github.com/eolinker/go-common v1.0.2/go.mod h1:Kb/jENMN1mApnodvRgV4YwO9FJby1Jkt2EUjrBjvSX4= +github.com/eolinker/go-common v1.0.4 h1:F0akjnzJfIFOVmK30fD0SsCLU7DAKPXuY21MeyMmQ7w= +github.com/eolinker/go-common v1.0.4/go.mod h1:Kb/jENMN1mApnodvRgV4YwO9FJby1Jkt2EUjrBjvSX4= github.com/gabriel-vasile/mimetype v1.4.4 h1:QjV6pZ7/XZ7ryI2KuyeEDE8wnh7fHP9YnQy+R0LnH8I= github.com/gabriel-vasile/mimetype v1.4.4/go.mod h1:JwLei5XPtWdGiMFB5Pjle1oEeoSeEuJfJE+TtfvdB/s= github.com/ghodss/yaml v1.0.0 h1:wQHKEahhL6wmXdzwWG11gIVCkOv05bNOh+Rxn0yngAk= diff --git a/module/my-team/iml.go b/module/my-team/iml.go index f5721776..31f818c5 100644 --- a/module/my-team/iml.go +++ b/module/my-team/iml.go @@ -39,6 +39,40 @@ type imlTeamModule struct { transaction store.ITransaction `autowired:""` } +func (m *imlTeamModule) SimpleTeams(ctx context.Context, keyword string) ([]*team_dto.SimpleTeam, error) { + teams, err := m.teamService.Search(ctx, keyword, nil) + if err != nil { + return nil, err + } + projects, err := m.serviceService.Search(ctx, "", nil) + projectCount := make(map[string]int64) + appCount := make(map[string]int64) + for _, p := range projects { + if p.AsServer { + if _, ok := projectCount[p.Team]; !ok { + projectCount[p.Team] = 0 + } + projectCount[p.Team]++ + } + if p.AsApp { + if _, ok := appCount[p.Team]; !ok { + appCount[p.Team] = 0 + } + appCount[p.Team]++ + } + } + + return utils.SliceToSlice(teams, func(s *team.Team) *team_dto.SimpleTeam { + return &team_dto.SimpleTeam{ + Id: s.Id, + Name: s.Name, + Description: s.Description, + ServiceNum: projectCount[s.Id], + AppNum: appCount[s.Id], + } + }), nil +} + func (m *imlTeamModule) UpdateMemberRole(ctx context.Context, id string, input *team_dto.UpdateMemberRole) error { _, err := m.teamService.Get(ctx, id) if err != nil { @@ -157,7 +191,7 @@ func (m *imlTeamModule) Edit(ctx context.Context, id string, input *team_dto.Edi return m.GetTeam(ctx, id) } -func (m *imlTeamModule) SimpleTeams(ctx context.Context, keyword string) ([]*team_dto.SimpleTeam, error) { +func (m *imlTeamModule) MySimpleTeams(ctx context.Context, keyword string) ([]*team_dto.SimpleTeam, error) { userID := utils.UserId(ctx) memberMap, err := m.teamMemberService.FilterMembersForUser(ctx, userID) if err != nil { diff --git a/module/my-team/team.go b/module/my-team/team.go index 59b302d8..f6079db9 100644 --- a/module/my-team/team.go +++ b/module/my-team/team.go @@ -3,9 +3,9 @@ package my_team import ( "context" "reflect" - + "github.com/eolinker/go-common/autowire" - + team_dto "github.com/APIParkLab/APIPark/module/my-team/dto" ) @@ -16,6 +16,8 @@ type ITeamModule interface { Search(ctx context.Context, keyword string) ([]*team_dto.Item, error) // Edit 编辑团队 Edit(ctx context.Context, id string, input *team_dto.EditTeam) (*team_dto.Team, error) + // MySimpleTeams 简易搜索团队 + MySimpleTeams(ctx context.Context, keyword string) ([]*team_dto.SimpleTeam, error) // SimpleTeams 简易搜索团队 SimpleTeams(ctx context.Context, keyword string) ([]*team_dto.SimpleTeam, error) // AddMember 添加团队成员 @@ -26,7 +28,7 @@ type ITeamModule interface { Members(ctx context.Context, id string, keyword string) ([]*team_dto.Member, error) // SimpleMembers 获取团队成员简易列表 SimpleMembers(ctx context.Context, id string, keyword string) ([]*team_dto.SimpleMember, error) - + // UpdateMemberRole 更新成员角色 UpdateMemberRole(ctx context.Context, id string, input *team_dto.UpdateMemberRole) error } diff --git a/module/permit/team/iml.go b/module/permit/team/iml.go index 7c15463e..f8d3e214 100644 --- a/module/permit/team/iml.go +++ b/module/permit/team/iml.go @@ -24,31 +24,32 @@ type imlTeamPermitModule struct { func (m *imlTeamPermitModule) Permissions(ctx context.Context, teamId string) ([]string, error) { - uid := utils.UserId(ctx) - roleMembers, err := m.roleMemberService.List(ctx, role.TeamTarget(teamId), uid) - if err != nil { - return nil, err - } - roleIds := utils.SliceToSlice(roleMembers, func(rm *role.Member) string { - return rm.Role - }) - if len(roleMembers) == 0 { - return []string{}, nil - } - roles, err := m.roleService.List(ctx, roleIds...) - if err != nil { - return nil, err - } - permits := make(map[string]struct{}) - for _, r := range roles { - for _, p := range r.Permit { - permits[p] = struct{}{} - } - } - - return utils.MapToSlice(permits, func(k string, v struct{}) string { - return k - }), nil + //uid := utils.UserId(ctx) + //roleMembers, err := m.roleMemberService.List(ctx, role.TeamTarget(teamId), uid) + //if err != nil { + // return nil, err + //} + //roleIds := utils.SliceToSlice(roleMembers, func(rm *role.Member) string { + // return rm.Role + //}) + //if len(roleMembers) == 0 { + // return []string{}, nil + //} + //roles, err := m.roleService.List(ctx, roleIds...) + //if err != nil { + // return nil, err + //} + //permits := make(map[string]struct{}) + //for _, r := range roles { + // for _, p := range r.Permit { + // permits[p] = struct{}{} + // } + //} + // + //return utils.MapToSlice(permits, func(k string, v struct{}) string { + // return k + //}), nil + return m.accesses(ctx, teamId) } func (m *imlTeamPermitModule) OnComplete() { @@ -59,7 +60,7 @@ func (m *imlTeamPermitModule) accesses(ctx context.Context, teamId string) ([]st // 判断是否是访客,如果是,直接返回访客权限 if utils.GuestAllow() && utils.IsGuest(ctx) { - return access.GuestAccess(role.SystemTarget()), nil + return access.GuestAccess(role.GroupTeam), nil } uid := utils.UserId(ctx) roleMembers, err := m.roleMemberService.List(ctx, role.TeamTarget(teamId), uid) diff --git a/plugins/core/core.go b/plugins/core/core.go index 55c97a16..647d14dd 100644 --- a/plugins/core/core.go +++ b/plugins/core/core.go @@ -2,33 +2,33 @@ package core import ( "net/http" - + plugin_cluster "github.com/APIParkLab/APIPark/controller/plugin-cluster" - + "github.com/APIParkLab/APIPark/controller/cluster" - + "github.com/eolinker/ap-account/controller/role" - + "github.com/APIParkLab/APIPark/controller/common" - + dynamic_module "github.com/APIParkLab/APIPark/controller/dynamic-module" - + "github.com/APIParkLab/APIPark/controller/release" - + application_authorization "github.com/APIParkLab/APIPark/controller/application-authorization" - + "github.com/APIParkLab/APIPark/controller/subscribe" - + "github.com/APIParkLab/APIPark/controller/api" - + "github.com/APIParkLab/APIPark/controller/upstream" - + "github.com/APIParkLab/APIPark/controller/service" - + "github.com/APIParkLab/APIPark/controller/catalogue" - + "github.com/APIParkLab/APIPark/controller/my_team" - + "github.com/APIParkLab/APIPark/controller/certificate" "github.com/APIParkLab/APIPark/controller/team_manager" "github.com/eolinker/go-common/autowire" @@ -47,7 +47,7 @@ func (d *Driver) Access() map[string][]string { } func (d *Driver) Create() (pm3.IPlugin, error) { - + p := new(plugin) autowire.Autowired(p) return p, nil @@ -76,7 +76,6 @@ type plugin struct { } func (p *plugin) OnComplete() { - p.apis = append(p.apis, p.partitionApi()...) p.apis = append(p.apis, p.certificateApi()...) p.apis = append(p.apis, p.clusterApi()...) p.apis = append(p.apis, p.TeamManagerApi()...) @@ -89,7 +88,7 @@ func (p *plugin) OnComplete() { p.apis = append(p.apis, p.projectAuthorizationApis()...) p.apis = append(p.apis, p.releaseApis()...) p.apis = append(p.apis, p.DynamicModuleApis()...) - + p.apis = append(p.apis, p.PartitionPluginApi()...) p.apis = append(p.apis, p.commonApis()...) } diff --git a/plugins/core/my-team.go b/plugins/core/my-team.go index a21ea05b..68ef6c4f 100644 --- a/plugins/core/my-team.go +++ b/plugins/core/my-team.go @@ -10,7 +10,8 @@ func (p *plugin) MyTeamApi() []pm3.Api { return []pm3.Api{ pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/team", []string{"context", "query:team"}, []string{"team"}, p.myTeamController.GetTeam), pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/teams", []string{"context", "query:keyword"}, []string{"teams"}, p.myTeamController.Search), - pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/simple/teams/mine", []string{"context", "query:keyword"}, []string{"teams"}, p.myTeamController.SimpleTeams), + pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/simple/teams/mine", []string{"context", "query:keyword"}, []string{"teams"}, p.myTeamController.MySimpleTeams), + pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/simple/teams", []string{"context", "query:keyword"}, []string{"teams"}, p.myTeamController.SimpleTeams), pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/team/members/simple", []string{"context", "query:team", "query:keyword"}, []string{"teams"}, p.myTeamController.SimpleMembers), pm3.CreateApiWidthDoc(http.MethodPut, "/api/v1/team", []string{"context", "query:team", "body"}, []string{"team"}, p.myTeamController.EditTeam), pm3.CreateApiWidthDoc(http.MethodPost, "/api/v1/team/member", []string{"context", "query:team", "body"}, nil, p.myTeamController.AddMember), diff --git a/plugins/core/partition.go b/plugins/core/partition.go deleted file mode 100644 index a1a663e8..00000000 --- a/plugins/core/partition.go +++ /dev/null @@ -1,17 +0,0 @@ -package core - -import ( - "github.com/eolinker/go-common/pm3" -) - -func (p *plugin) partitionApi() []pm3.Api { - return []pm3.Api{ - //pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/partitions", []string{"context", "query:keyword"}, []string{"partitions"}, p.partitionController.Search), - //pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/partition", []string{"context", "query:id"}, []string{"partition"}, p.partitionController.Info), - //pm3.CreateApiWidthDoc(http.MethodPost, "/api/v1/partition", []string{"context", "body"}, []string{"partition", "id", "update_time"}, p.partitionController.Create), - //pm3.CreateApiWidthDoc(http.MethodPut, "/api/v1/partition", []string{"context", "query:id", "body"}, []string{"partition"}, p.partitionController.Update), - //pm3.CreateApiWidthDoc(http.MethodDelete, "/api/v1/partition", []string{"context", "query:id"}, []string{"id"}, p.partitionController.Delete), - //pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/simple/partitions", []string{"context"}, []string{"partitions"}, p.partitionController.Simple), - //pm3.CreateApiWidthDoc(http.MethodGet, "/api/v1/simple/partitions/cluster", []string{"context"}, []string{"partitions"}, p.partitionController.SimpleWithCluster), - } -} diff --git a/resources/access/access.yaml b/resources/access/access.yaml index 2d340289..7085e997 100644 --- a/resources/access/access.yaml +++ b/resources/access/access.yaml @@ -290,7 +290,6 @@ team: cname: 管理 value: 'manager' apis: - - "GET:/api/v1/service/info" - "PUT:/api/v1/service/info" - "POST:/api/v1/team/service" - "DELETE:/api/v1/team/service" @@ -342,7 +341,6 @@ team: cname: 管理 value: 'manager' apis: - - "GET:/api/v1/app/info" - "PUT:/api/v1/app/info" - "POST:/api/v1/team/app" - "DELETE:/api/v1/app"