feat: member
parent
bcf4db28e4
commit
015f2d5d85
|
@ -0,0 +1,19 @@
|
||||||
|
import { defHttp } from '@/utils/http/axios'
|
||||||
|
|
||||||
|
export interface ConfigVO {
|
||||||
|
id: number
|
||||||
|
tradeDeductEnable: number
|
||||||
|
tradeDeductUnitPrice: number
|
||||||
|
tradeDeductMaxPrice: number
|
||||||
|
tradeGivePoint: number
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询积分设置详情
|
||||||
|
export function getConfig() {
|
||||||
|
return defHttp.get({ url: '/member/point/config/get' })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增修改积分设置
|
||||||
|
export function saveConfig(data: ConfigVO) {
|
||||||
|
return defHttp.put({ url: '/member/point/config/save', data })
|
||||||
|
}
|
|
@ -0,0 +1,21 @@
|
||||||
|
import { defHttp } from '@/utils/http/axios'
|
||||||
|
|
||||||
|
export interface RecordVO {
|
||||||
|
id: number
|
||||||
|
bizId: string
|
||||||
|
bizType: string
|
||||||
|
title: string
|
||||||
|
description: string
|
||||||
|
point: number
|
||||||
|
totalPoint: number
|
||||||
|
status: number
|
||||||
|
userId: number
|
||||||
|
freezingTime: Date
|
||||||
|
thawingTime: Date
|
||||||
|
createDate: Date
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询用户积分记录列表
|
||||||
|
export function getRecordPage(params) {
|
||||||
|
return defHttp.get({ url: '/member/point/record/page', params })
|
||||||
|
}
|
|
@ -0,0 +1,33 @@
|
||||||
|
import { defHttp } from '@/utils/http/axios'
|
||||||
|
|
||||||
|
export interface SignInConfigVO {
|
||||||
|
id: number
|
||||||
|
day: number | null
|
||||||
|
point: number | null
|
||||||
|
enable: boolean | null
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询积分签到规则列表
|
||||||
|
export function getSignInConfigList() {
|
||||||
|
return defHttp.get({ url: '/member/point/sign-in-config/list' })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询积分签到规则详情
|
||||||
|
export function getSignInConfig(id: number) {
|
||||||
|
return defHttp.get({ url: `/member/point/sign-in-config/get?id=${id}` })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增积分签到规则
|
||||||
|
export function createSignInConfig(data: SignInConfigVO) {
|
||||||
|
return defHttp.post({ url: '/member/point/sign-in-config/create', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改积分签到规则
|
||||||
|
export function updateSignInConfig(data: SignInConfigVO) {
|
||||||
|
return defHttp.put({ url: '/member/point/sign-in-config/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除积分签到规则
|
||||||
|
export function deleteSignInConfig(id: number) {
|
||||||
|
return defHttp.delete({ url: `/member/point/sign-in-config/delete?id=${id}` })
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
import { defHttp } from '@/utils/http/axios'
|
||||||
|
|
||||||
|
export interface SignInRecordVO {
|
||||||
|
id: number
|
||||||
|
userId: number
|
||||||
|
day: number
|
||||||
|
point: number
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询用户签到积分列表
|
||||||
|
export function getSignInRecordPage(params) {
|
||||||
|
return defHttp.get({ url: '/member/point/sign-in-record/page', params })
|
||||||
|
}
|
|
@ -0,0 +1,31 @@
|
||||||
|
import { defHttp } from '@/utils/http/axios'
|
||||||
|
|
||||||
|
export interface TagVO {
|
||||||
|
id: number
|
||||||
|
name: string
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询会员标签列表
|
||||||
|
export function getMemberTagPage(params) {
|
||||||
|
return defHttp.get({ url: '/member/tag/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询会员标签详情
|
||||||
|
export function getMemberTag(id: number) {
|
||||||
|
return defHttp.get({ url: `/member/tag/get?id=${id}` })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 新增会员标签
|
||||||
|
export function createMemberTag(data: TagVO) {
|
||||||
|
return defHttp.post({ url: '/member/tag/create', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改会员标签
|
||||||
|
export function updateMemberTag(data: TagVO) {
|
||||||
|
return defHttp.put({ url: '/member/tag/update', data })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 删除会员标签
|
||||||
|
export function deleteMemberTag(id: number) {
|
||||||
|
return defHttp.delete({ url: `/member/tag/delete?id=${id}` })
|
||||||
|
}
|
|
@ -0,0 +1,34 @@
|
||||||
|
import { defHttp } from '@/utils/http/axios'
|
||||||
|
|
||||||
|
export interface UserVO {
|
||||||
|
id: number
|
||||||
|
mobile: string
|
||||||
|
password: string
|
||||||
|
status: number
|
||||||
|
registerIp: string
|
||||||
|
loginIp: string
|
||||||
|
loginDate: Date
|
||||||
|
nickname: string
|
||||||
|
avatar: string
|
||||||
|
name: string
|
||||||
|
sex: number
|
||||||
|
areaId: number
|
||||||
|
birthday: Date
|
||||||
|
mark: string
|
||||||
|
createTime: Date
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询会员用户列表
|
||||||
|
export function getUserPage(params) {
|
||||||
|
return defHttp.get({ url: '/member/user/page', params })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 查询会员用户详情
|
||||||
|
export function getUser(id: number) {
|
||||||
|
return defHttp.get({ url: `/member/user/get?id=${id}` })
|
||||||
|
}
|
||||||
|
|
||||||
|
// 修改会员用户
|
||||||
|
export function updateUser(data: UserVO) {
|
||||||
|
return defHttp.put({ url: '/member/user/update', data })
|
||||||
|
}
|
|
@ -0,0 +1,3 @@
|
||||||
|
<script lang="ts" setup>
|
||||||
|
defineOptions({ name: 'MemberPointConfig' })
|
||||||
|
</script>
|
|
@ -0,0 +1,3 @@
|
||||||
|
<script lang="ts" setup>
|
||||||
|
defineOptions({ name: 'MemberPointConfig' })
|
||||||
|
</script>
|
|
@ -0,0 +1,3 @@
|
||||||
|
<script lang="ts" setup>
|
||||||
|
defineOptions({ name: 'MemberPointConfig' })
|
||||||
|
</script>
|
|
@ -0,0 +1,3 @@
|
||||||
|
<script lang="ts" setup>
|
||||||
|
defineOptions({ name: 'MemberPointConfig' })
|
||||||
|
</script>
|
|
@ -0,0 +1,3 @@
|
||||||
|
<script lang="ts" setup>
|
||||||
|
defineOptions({ name: 'MemberPointConfig' })
|
||||||
|
</script>
|
|
@ -0,0 +1,3 @@
|
||||||
|
<script lang="ts" setup>
|
||||||
|
defineOptions({ name: 'MemberPointConfig' })
|
||||||
|
</script>
|
Loading…
Reference in New Issue