governanceAudit.js 794 B

12345678910111213141516171819202122232425262728
  1. import http from '@/utils/request'
  2. export function getGovernanceAuditSecurityChecks () {
  3. return http.get('/system/governance-audit/security-checks')
  4. }
  5. export function getGovernanceAuditCoverage (params) {
  6. return http.get('/system/governance-audit/coverage', params)
  7. }
  8. export function getGovernanceAuditEvents (params) {
  9. return http.get('/system/governance-audit/events', params)
  10. }
  11. export function getGovernanceAuditSeals (limit = 50) {
  12. return http.get('/system/governance-audit/seals', { limit })
  13. }
  14. export function createGovernanceAuditSeal (payload) {
  15. return http.post('/system/governance-audit/seals', payload)
  16. }
  17. export function verifyGovernanceAuditSeal (sealUid) {
  18. return http.post(
  19. `/system/governance-audit/seals/${encodeURIComponent(sealUid)}/verify`,
  20. {}
  21. )
  22. }