address.ts 807 B

12345678910111213141516171819202122232425
  1. import http from '../utils/http'
  2. const AddressApi = {
  3. async GetPaged(input: any) {
  4. return http.get('/api/services/wxapp/WxAddress/GetPaged', input) as Promise<
  5. IRestResult<ListResultDto<any>>
  6. >
  7. },
  8. async GetById(input: any) {
  9. return http.get('/api/services/wxapp/WxAddress/GetById', input) as Promise<IRestResult<any>>
  10. },
  11. async GetForEdit(input: any) {
  12. return http.get('/api/services/wxapp/WxAddress/GetForEdit', input) as Promise<IRestResult<any>>
  13. },
  14. async CreateOrUpdate(input: any) {
  15. return http.post('/api/services/wxapp/WxAddress/CreateOrUpdate', input) as Promise<
  16. IRestResult<any>
  17. >
  18. },
  19. async Delete(input: any) {
  20. return http.delete('/api/services/wxapp/WxAddress/Delete', input) as Promise<IRestResult<any>>
  21. },
  22. }
  23. export default AddressApi