✨ feat(邀请码): 完成邀请码模块

This commit is contained in:
xuan
2022-12-01 13:54:05 +08:00
parent 3ff32ee209
commit 7d3f6e22c5
19 changed files with 606 additions and 36 deletions
+18
View File
@@ -0,0 +1,18 @@
import { CAP_HTML_TO_IMAGE_BASE_URL } from '@/common/constant'
import { useRequest } from '@/use/useHttp'
// 邀请码
export const GetInvitationInfo = () => {
return useRequest({
url: '/v1/mp/user/invitationInfoRecord',
method: 'get',
})
}
// 生成二维码
export const GenBarCodeOrQrCode = () => {
return useRequest({
url: '/xima-caphtml/genBarcodeOrQrCode',
base_url: CAP_HTML_TO_IMAGE_BASE_URL,
method: 'post',
})
}