google.ts 768 B

12345678910111213141516171819202122232425262728
  1. import Service from '../lib/service.js'
  2. import axios from 'axios'
  3. import Config from '../config'
  4. class GoogleService extends Service {
  5. constructor() {
  6. super()
  7. axios.defaults.baseURL = Config.Host85
  8. }
  9. /* Google组别管理 */
  10. // 查询组别列表
  11. async googleGroupList(params = {}) {
  12. return await this.post('/google/group/search/list', params)
  13. }
  14. // 删除组别
  15. async googleGroupDelete(params = {}) {
  16. return await this.post('/google/group/delete', params)
  17. }
  18. // 更新组别
  19. async googleGroupUpdate(params = {}) {
  20. return await this.post('/google/group/update', params)
  21. }
  22. // 新增组别
  23. async googleGroupAdd(params = {}) {
  24. return await this.post('/google/group/add', params)
  25. }
  26. }
  27. export default new GoogleService()