| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- import request from '../request';
- import handle from '../handle';
- import { REQUEST_CONFIG } from '../../config';
- /**
- * 跳转授权链接
- * @param {String} hosId 医院ID
- * @param {String} wechatConfigKey 公众号授权地址configKey
- * @param {Url} toUrl 授权后重定向的回调链接地址
- */
- export const WebOauthAuthorize = (queryData: any) => {
- return `${REQUEST_CONFIG.BASE_URL}oauth/100123/${queryData.wechatConfigKey}/login.do?toUrl=${queryData.toUrl}`;
- // return `https://open.weixin.qq.com/connect/oauth/authorize?appid=${queryData.appid}&redirect_uri=${queryData.redirect_uri}&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect`;
- };
- /** 获取系统状态 */
- export const GetAppStatus = async (queryData: any) => {
- const resp = handle.promistHandle(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}kstserver/status?appId=${queryData.appId}`,
- {},
- {
- construction: true,
- }
- )
- );
- return handle.catchPromise(resp, () => resp);
- };
- /** 页面参数查询列表 */
- export const SysAppPageList = async (queryData: any) => {
- const resp = handle.promistHandle(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/sysAppPage/api/List/callApiJSON.do`,
- queryData,
- {
- showLoading: false,
- }
- )
- );
- return handle.catchPromise(resp, () => resp);
- };
- /** 查询院内就诊卡信息 */
- export const QueryMemberCardList_V3 = async (queryData: any) => {
- const resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryMemberCardList_V3/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /** 查询就诊人信息 */
- export const QueryBaseMemberList_V3 = async (queryData: any) => {
- const resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/accountMember/api/QueryBaseMemberList_V3/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /** 获取表单配置信息 */
- export const BaseFormQuery = async (queryData: any) => {
- let resp = handle.promistHandle(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/base/form/Query/callApiJSON.do`,
- queryData,
- {
- showLoading: false,
- }
- )
- );
- return handle.catchPromise(resp, () => resp);
- };
- /** 查询功能菜单列表 */
- export const SysclientappmenuList = async (queryData: any) => {
- let resp = handle.promistHandle(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/sysclientappmenu/api/List/callApiJSON.do`,
- queryData,
- {
- showLoading: false,
- }
- )
- );
- return handle.catchPromise(resp, () => resp);
- };
- /** 获取缓存信息 */
- export const CacheGetValue = async (queryData: any) => {
- const resp = handle.promistHandle(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/sysweb/cache/GetValue/callApiJSON.do`,
- queryData,
- {
- showLoading: false,
- }
- )
- );
- return handle.catchPromise(resp, () => resp);
- };
- /** HCRM-我的随访-获取房间ID */
- export const GetRoomId = async (queryData: any) => {
- const resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/fuchat/base/GetRoomId/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
- /** HCRM-我的随访-获取会话列表 */
- export const GetMemberChatList = async (queryData: any) => {
- const resp = handle.promistHandleNew(
- await request.doPost(
- `${REQUEST_CONFIG.BASE_URL}wsgw/fuchat/base/GetMemberChatList/callApiJSON.do`,
- queryData
- )
- );
- return handle.catchPromiseNew(resp, () => resp);
- };
|