图书馆小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

157 lines
2.8 KiB

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
});
}
/**
* 用户登录
*/
export function login(data) {
return request({
url: '/sys/login',
method: 'POST',
data
});
}
/**
* 关注用户
*/
// export function userFollow(data) {
// return request({
// url: '/user/follow',
// data
// });
// }
/**
* 发表评论
*/
// export function userArticleComment(data) {
// return request({
// url: '/user/article/comment',
// method: 'POST',
// data
// });
// }
/**
* 用户点赞
*/
// export function userPraise(data) {
// return request({
// url: '/user/praise',
// data
// });
// }
/**
* 用户收藏
*/
// export function userCollect(data) {
// return request({
// url: '/user/collect',
// data
// });
// }