import request from '@/sheep/request'; const SignInApi = { // 获得签到规则列表 getSignInConfigList: () => { return request({ url: '/member/sign-in/config/list', method: 'GET', }); }, // 获得个人签到统计 getSignInRecordSummary: () => { return request({ url: '/member/sign-in/record/get-summary', method: 'GET', }); }, // 获得 getOwnSignInMoon: (params) => { return request({ url: '/member/sign-in/record/get-own-signInMoon', method: 'GET', params }); }, // 签到 createSignInRecord: () => { return request({ url: '/distri/user-sign-in-log/create', method: 'POST', }); }, // 获得签到记录分页 getSignRecordPage: (params) => { console.log(params) const queryString = Object.keys(params) .map((key) => encodeURIComponent(key) + '=' + params[key]) .join('&'); return request({ url: `/member/sign-in/record/page?${queryString}`, method: 'GET', }); }, }; export default SignInApi;