|
|
import request from '../utils/request';
// 获取第三方url/appid/Secret/sm4_key
export function FetchInitScreenSetting(data) { return request({ url: '/api/screenSetting/initScreenSetting', data })}
//根据微信code 获取openId
export function FetchOpenId(data) { return request({ url: '/api/weixin/getOpenId', data });}// 根据openid获取所有绑定读者证列表
// ?libcode=&openId=
export function FetchFindAllReaderBindByOpenId(data) { return request({ url: '/api/weixin/findAllReaderBindByOpenId', data });}
// 根据openid获取用户信息
// ?libcode=&openId=
export function FetchFindAllReaderByOpenId(data) { return request({ url: '/api/weixin/findReaderByOpenId', data });}
// 读者认证
export function FetchReaderList(data) { return request({ url: '/api/screenSetting/searchreaderlist2', data });}
// 用户绑定读者证
// {
// "openid":"小程序用户openID",
// "bindValue":"绑定值",
// "bindType":"绑定方式(rdid 读者证号 rdname读者姓名 rdcertify身份证号 othercardno其他编号 workcardno工作/学生证号 rdphone电话 rdloginid手机 cardid附属卡(IC卡))",
// "libcode":"馆代码"
// }
export function FetchBindReadCard(data) { return request({ url: '/api/weixin/bindReadCard', method: 'POST', data });}
// 绑定用户
// {
// "avatar": "头像",
// "libcode": "馆代码",
// "nickname": "昵称",
// "openid": ""
// }
export function FetchBindRead(data) { return request({ url: '/api/weixin/bindReader', method: 'POST', data });}
// 设置默认读者证
// {
// "bindType": "string",
// "bindValue": "string",
// "libcode": "string",
// "openid": "string"
// }
export function FetchSetDefaultReadCard(data) { return request({ url: '/api/weixin/setDefaultReadCard', method: 'POST', data });}
// 用户解绑读者证
// {
// "bindType": "string",
// "bindValue": "string",
// "libcode": "string",
// "openid": "string"
// }
export function FetchUnbindReadCard(data) { return request({ url: '/api/weixin/unbindReadCard', method: 'POST', data });}
|