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.
155 lines
3.1 KiB
155 lines
3.1 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
|
|
});
|
|
}
|
|
|
|
// 读者留言列表
|
|
// ?libcode=1&openId=1&page=0&phone=1&readCardNo=1&readName=1&size=10&title=1
|
|
export function FetchInitReaderMessage(data) {
|
|
return request({
|
|
url: '/api/weixin/initReaderMessage',
|
|
data
|
|
});
|
|
}
|
|
|
|
// 根据id查看读者留言详情
|
|
// ?id=1
|
|
export function FetchReaderMessageDetailsById(data) {
|
|
return request({
|
|
url: '/api/weixin/getReaderMessageDetailsById',
|
|
data
|
|
});
|
|
}
|
|
|
|
// 读者留言
|
|
// {
|
|
// "libcode": "馆代码",
|
|
// "openid": "string",
|
|
// "phone": "联系方式",
|
|
// "readCardNo": "读者证号",
|
|
// "readName": "读者名称",
|
|
// "suggestion": "建议",
|
|
// "title": "标题"
|
|
// }
|
|
export function FetchReaderMessage(data) {
|
|
return request({
|
|
url: '/api/weixin/readerMessage',
|
|
method: 'POST',
|
|
data
|
|
});
|
|
}
|
|
|
|
// 回复读者留言
|
|
// {
|
|
// "id": 0,
|
|
// "reply": "回复"
|
|
// }
|
|
export function FetchReplyReaderMessage(data) {
|
|
return request({
|
|
url: '/api/weixin/replyReaderMessage',
|
|
method: 'POST',
|
|
data
|
|
});
|
|
}
|
|
|
|
|