import { http } from '@/api/request'

export interface WeComConfig {
  corpId?: string
  agentId?: string
  secret?: string
  enabled?: number
}

export function getWeComConfig(): Promise<WeComConfig> {
  return http.get('/system/notification-config/wecom')
}

export function saveWeComConfig(data: WeComConfig): Promise<void> {
  return http.put('/system/notification-config/wecom', data)
}
