Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ADMIN_APPROVE_GET = apis.ApiSpec{ Path: "/api/approves/<approveId>", BackendPath: "/api/approves/<approveId>", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: "GET", CheckLogin: true, ResponseType: apistructs.ApproveDetailResponse{}, Doc: "summary: 获取审批详情", }
View Source
var ADMIN_APPROVE_LIST = apis.ApiSpec{ Path: "/api/approves/actions/list-approves", BackendPath: "/api/approves/actions/list-approves", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: "GET", CheckLogin: true, CheckToken: true, RequestType: apistructs.ApproveListRequest{}, ResponseType: apistructs.PagingApproveDTO{}, IsOpenAPI: true, Doc: "summary: 查询所有审批列表", }
View Source
var ADMIN_APPROVE_UPDATE = apis.ApiSpec{ Path: "/api/approves/<approveId>", BackendPath: "/api/approves/<approveId>", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: "PUT", CheckLogin: true, RequestType: apistructs.ApproveUpdateRequest{}, ResponseType: apistructs.ApproveUpdateResponse{}, Doc: "summary: 更新审批", }
View Source
var ADMIN_AUDITS_EXPORT = apis.ApiSpec{ Path: "/api/audits/actions/export-excel", BackendPath: "/api/audits/actions/export-excel", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: http.MethodGet, IsOpenAPI: true, CheckLogin: true, CheckToken: true, RequestType: apistructs.AuditsListRequest{}, Doc: "summary: 导出审计事件", }
View Source
var ADMIN_AUDITS_LIST = apis.ApiSpec{ Path: "/api/audits/actions/list", BackendPath: "/api/audits/actions/list", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: http.MethodGet, IsOpenAPI: true, CheckLogin: true, CheckToken: true, RequestType: apistructs.AuditsListRequest{}, ResponseType: apistructs.AuditsListResponse{}, Doc: "summary: List 审计事件", }
View Source
var ADMIN_CLUSTER_GET = apis.ApiSpec{ Path: "/api/clusters/<clusterName>", BackendPath: "/api/clusters/<clusterName>", Method: "GET", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", CheckLogin: true, ResponseType: apistructs.ClusterInfo{}, Doc: "summary: 集群列表", }
View Source
var ADMIN_CLUSTER_LIST = apis.ApiSpec{ Path: "/api/clusters", BackendPath: "/api/clusters", Method: "GET", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", CheckLogin: true, RequestType: apistructs.ClusterListRequest{}, ResponseType: apistructs.ClusterListResponse{}, Doc: "summary: 集群列表", }
View Source
var ADMIN_DINGTALK_TEST = apis.ApiSpec{ Path: "/api/admin/notify/dingtalk-test", BackendPath: "/api/admin/notify/dingtalk-test", Host: "admin.marathon.l4lb.thisdcos.directory:9096", Scheme: "http", Method: http.MethodPost, CheckLogin: true, CheckToken: true, IsOpenAPI: true, Doc: "summary: 测试通知组钉钉发送", }
View Source
var ADMIN_NOTICE_CREATE = apis.ApiSpec{ Path: "/api/notices", BackendPath: "/api/notices", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: http.MethodPost, CheckLogin: true, CheckToken: true, RequestType: apistructs.NoticeCreateRequest{}, ResponseType: apistructs.NoticeCreateResponse{}, IsOpenAPI: true, Doc: "summary: 创建平台公告", Audit: func(ctx *spec.AuditContext) error { var resp apistructs.NoticeCreateResponse err := ctx.BindResponseData(&resp) if err != nil { return err } if resp.Success { return ctx.CreateAudit(&apistructs.Audit{ ScopeType: apistructs.OrgScope, ScopeID: uint64(ctx.OrgID), TemplateName: apistructs.CreateNoticesTemplate, Context: map[string]interface{}{"notices": resp.Data.Content}, }) } else { return nil } }, }
View Source
var ADMIN_NOTICE_DELETE = apis.ApiSpec{ Path: "/api/notices/<id>", BackendPath: "/api/notices/<id>", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: http.MethodDelete, CheckLogin: true, CheckToken: true, IsOpenAPI: true, ResponseType: apistructs.NoticeDeleteResponse{}, Doc: "summary: 删除平台公告", Audit: func(ctx *spec.AuditContext) error { var resp apistructs.NoticeDeleteResponse err := ctx.BindResponseData(&resp) if err != nil { return err } if resp.Success { return ctx.CreateAudit(&apistructs.Audit{ ScopeType: apistructs.OrgScope, ScopeID: uint64(ctx.OrgID), TemplateName: apistructs.DeleteNoticesTemplate, Context: map[string]interface{}{"notices": resp.Data.Content}, }) } else { return nil } }, }
View Source
var ADMIN_NOTICE_LIST = apis.ApiSpec{ Path: "/api/notices", BackendPath: "/api/notices", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: http.MethodGet, CheckLogin: true, CheckToken: true, RequestType: apistructs.NoticeListRequest{}, ResponseType: apistructs.NoticeListResponse{}, IsOpenAPI: true, Doc: "summary: 平台公告列表", }
View Source
var ADMIN_NOTICE_PUBLISH = apis.ApiSpec{ Path: "/api/notices/<id>/actions/publish", BackendPath: "/api/notices/<id>/actions/publish", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: http.MethodPut, CheckLogin: true, CheckToken: true, IsOpenAPI: true, Doc: "summary: 发布平台公告", ResponseType: apistructs.NoticePublishResponse{}, Audit: func(ctx *spec.AuditContext) error { var resp apistructs.NoticePublishResponse err := ctx.BindResponseData(&resp) if err != nil { return err } if resp.Success { return ctx.CreateAudit(&apistructs.Audit{ ScopeType: apistructs.OrgScope, ScopeID: uint64(ctx.OrgID), TemplateName: apistructs.PublishNoticesTemplate, Context: map[string]interface{}{"notices": resp.Data.Content}, }) } else { return nil } }, }
View Source
var ADMIN_NOTICE_UNPUBLISH = apis.ApiSpec{ Path: "/api/notices/<id>/actions/unpublish", BackendPath: "/api/notices/<id>/actions/unpublish", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: http.MethodPut, CheckLogin: true, CheckToken: true, IsOpenAPI: true, Doc: "summary: 下架平台公告", Audit: func(ctx *spec.AuditContext) error { var resp apistructs.NoticePublishResponse err := ctx.BindResponseData(&resp) if err != nil { return err } if resp.Success { return ctx.CreateAudit(&apistructs.Audit{ ScopeType: apistructs.OrgScope, ScopeID: uint64(ctx.OrgID), TemplateName: apistructs.UnPublishNoticesTemplate, Context: map[string]interface{}{"notices": resp.Data.Content}, }) } else { return nil } }, }
View Source
var ADMIN_NOTICE_UPDATE = apis.ApiSpec{ Path: "/api/notices/<id>", BackendPath: "/api/notices/<id>", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: http.MethodPut, CheckLogin: true, CheckToken: true, RequestType: apistructs.NoticeUpdateRequest{}, ResponseType: apistructs.NoticeUpdateResponse{}, IsOpenAPI: true, Doc: "summary: 编辑平台公告", Audit: func(ctx *spec.AuditContext) error { var req apistructs.NoticeUpdateRequest err := ctx.BindRequestData(&req) if err != nil { return err } var resp apistructs.NoticeUpdateResponse err = ctx.BindResponseData(&resp) if err != nil { return err } if resp.Success { return ctx.CreateAudit(&apistructs.Audit{ ScopeType: apistructs.OrgScope, ScopeID: uint64(ctx.OrgID), TemplateName: apistructs.UpdateNoticesTemplate, Context: map[string]interface{}{"notices": req.Content}, }) } else { return nil } }, }
View Source
var ADMIN_USER_LIST = apis.ApiSpec{ Path: "/api/users", BackendPath: "/api/users", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: "GET", CheckLogin: true, CheckToken: true, IsOpenAPI: true, RequestType: apistructs.UserListRequest{}, ResponseType: apistructs.UserListResponse{}, Doc: "summary: 批量查询用户", Group: "users", }
View Source
var ADMIN_USER_SEARCH = apis.ApiSpec{ Path: "/api/users/actions/search", BackendPath: "/api/users/actions/search", Host: "admin.marathon.l4lb.thisdcos.directory:9095", Scheme: "http", Method: "GET", CheckLogin: true, CheckToken: true, IsOpenAPI: true, RequestType: apistructs.UserListRequest{}, ResponseType: apistructs.UserListResponse{}, Doc: "summary:search user by page", Group: "users", }
Functions ¶
This section is empty.
Types ¶
This section is empty.
Source Files ¶
- admin_approve_get.go
- admin_approve_list.go
- admin_approve_update.go
- admin_audits_export.go
- admin_audits_list.go
- admin_cluster_get.go
- admin_cluster_list.go
- admin_dingtalk.go
- admin_notice_create.go
- admin_notice_delete.go
- admin_notice_list.go
- admin_notice_publish.go
- admin_notice_unpublish.go
- admin_notice_update.go
- admin_user_list.go
- admin_user_search.go
Click to show internal directories.
Click to hide internal directories.