1 line
2.1 KiB
Plaintext
1 line
2.1 KiB
Plaintext
{"version":3,"file":"address.js","sources":["../../../../../../src/sheep/api/member/address.js"],"sourcesContent":["import request from '@/sheep/request'\r\n\r\nconst AddressApi = {\r\n // 获得用户收件地址列表\r\n getAddressList: () => {\r\n return request({\r\n url: '/member/address/list',\r\n method: 'GET',\r\n })\r\n },\r\n // 创建用户收件地址\r\n createAddress: (data) => {\r\n return request({\r\n url: '/member/address/create',\r\n method: 'POST',\r\n data,\r\n custom: {\r\n showSuccess: true,\r\n successMsg: '保存成功',\r\n },\r\n })\r\n },\r\n // 更新用户收件地址\r\n updateAddress: (data) => {\r\n return request({\r\n url: '/member/address/update',\r\n method: 'PUT',\r\n data,\r\n custom: {\r\n showSuccess: true,\r\n successMsg: '更新成功',\r\n },\r\n })\r\n },\r\n // 获得用户收件地址\r\n getAddress: (id) => {\r\n return request({\r\n url: '/member/address/get',\r\n method: 'GET',\r\n params: { id },\r\n })\r\n },\r\n // 删除用户收件地址\r\n deleteAddress: (id) => {\r\n return request({\r\n url: '/member/address/delete',\r\n method: 'DELETE',\r\n params: { id },\r\n })\r\n },\r\n}\r\n\r\nexport default AddressApi\r\n"],"names":["request"],"mappings":";;AAEK,MAAC,aAAa;AAAA;AAAA,EAEjB,gBAAgB,MAAM;AACpB,WAAOA,4BAAQ;AAAA,MACb,KAAK;AAAA,MACL,QAAQ;AAAA,IACd,CAAK;AAAA,EACF;AAAA;AAAA,EAED,eAAe,CAAC,SAAS;AACvB,WAAOA,4BAAQ;AAAA,MACb,KAAK;AAAA,MACL,QAAQ;AAAA,MACR;AAAA,MACA,QAAQ;AAAA,QACN,aAAa;AAAA,QACb,YAAY;AAAA,MACb;AAAA,IACP,CAAK;AAAA,EACF;AAAA;AAAA,EAED,eAAe,CAAC,SAAS;AACvB,WAAOA,4BAAQ;AAAA,MACb,KAAK;AAAA,MACL,QAAQ;AAAA,MACR;AAAA,MACA,QAAQ;AAAA,QACN,aAAa;AAAA,QACb,YAAY;AAAA,MACb;AAAA,IACP,CAAK;AAAA,EACF;AAAA;AAAA,EAED,YAAY,CAAC,OAAO;AAClB,WAAOA,4BAAQ;AAAA,MACb,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,QAAQ,EAAE,GAAI;AAAA,IACpB,CAAK;AAAA,EACF;AAAA;AAAA,EAED,eAAe,CAAC,OAAO;AACrB,WAAOA,4BAAQ;AAAA,MACb,KAAK;AAAA,MACL,QAAQ;AAAA,MACR,QAAQ,EAAE,GAAI;AAAA,IACpB,CAAK;AAAA,EACF;AACH;;"} |