123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- import request from '@/utils/request'
- export function getContacts(deviceId) {
- return request({
- url: '/qw/contact/list/'+deviceId,
- method: 'get'
- })
- }
- export function getContactsByUser(userId) {
- return request({
- url: '/qw/contact/listByUser/'+userId,
- method: 'get'
- })
- }
- export function getConversations(userId) {
- return request({
- url: '/qw/qwMsg/conversationList/'+userId,
- method: 'get'
- })
- }
- export function getConversation(query) {
- return request({
- url: '/qw/qwMsg/getSession',
- method: 'get',
- params:query
- })
- }
- export function getMessageList(query) {
- return request({
- url: '/qw/qwMsg/getQwMessageListBySession',
- method: 'get',
- params: query
- })
- }
- export function getQwUserList() {
- return request({
- url: '/qw/qwMsg/qwUserList',
- method: 'get',
- })
- }
- // 发送文本消息
- export function sendMsg(data) {
- return request({
- url: '/qw/qwMsg/sendMsg',
- method: 'post',
- data: data
- })
- }
- // 发送文本消息
- export function sendImageMsg(data) {
- return request({
- url: '/qw/message/image',
- method: 'post',
- data: data
- })
- }
- export function getRoomInfo(roomId) {
- return request({
- url: '/qw/room/roomDetail/'+roomId,
- method: 'get'
- })
- }
- //导出消息
- export function exportMessage(query) {
- return request({
- url: '/qw/message/export/',
- method: 'get',
- params: query
- })
- }
- // 获取外部联系人详情
- export function getQwExternalContactDetails(query) {
- return request({
- url: '/qw/qwMsg/getQwExternalContactDetails',
- method: 'get',
- params: query
- })
- }
- // 获取用户信息
- export function getQwUserInfo(query) {
- return request({
- url: '/qw/qwMsg/getQwUserInfo',
- method: 'get',
- params: query
- })
- }
- // 修改用户信息
- export function updateQwUserInfo(data) {
- return request({
- url: '/qw/qwMsg/updateQwUserInfo',
- method: 'post',
- data: data
- })
- }
- // 获取看课记录
- export function queryCourseWatchStatistics(data) {
- return request({
- url: '/qw/qwMsg/course/watch',
- method: 'post',
- data: data
- })
- }
- // 获取课程列表
- export function getFsCourseListBySidebar(data) {
- return request({
- url: '/qw/qwMsg/getFsCourseListBySidebar',
- method: 'post',
- data: data
- })
- }
- // 获取课程小节列表
- export function getFsCourseVideoListBySidebar(data) {
- return request({
- url: '/qw/qwMsg/getFsCourseVideoListBySidebar',
- method: 'post',
- data: data
- })
- }
|