123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- import request from "@/utils/request"
- // 刷新令牌
- export const refreshToken = (refreshToken) => {
- return request({
- url: '/app-api/menduner/system/auth/refresh-token',
- method: "POST",
- params: {
- refreshToken
- },
- custom: {
- showLoading: false,
- showError: false
- }
- })
- }
- // 短信登录
- export const smsLogin = (data) => {
- return request({
- url: '/app-api/menduner/system/auth/sms-login',
- method: 'POST',
- data,
- custom: {
- showLoading: false
- }
- })
- }
- // 微信小程序的一键登录
- export const weChatLogin = (data) => {
- return request({
- url: '/app-api/menduner/system/auth/weixin-mini-app-login',
- method: 'POST',
- data,
- custom: {
- showLoading: false
- }
- })
- }
- // 密码登录
- export const passwordLogin = (data) => {
- return request({
- url: '/app-api/menduner/system/auth/login',
- method: 'POST',
- data,
- custom: {
- showLoading: false
- }
- })
- }
- // 招聘端-退出登录
- export const logout = (token) => {
- return request({
- url: `/app-api/menduner/system/recruit/enterprise/auth/logout-token?token=${token}`,
- method: 'POST',
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 内容管理-广告
- export const getWebContent = async () => {
- return request({
- url: `/app-api/menduner/system/web-content/get?id=1`,
- method: 'GET',
- custom: {
- showLoading: false,
- auth: false
- }
- })
- }
- // 求职端交易订单 创建
- export const orderCreated = async (data) => {
- return request({
- // url: '/app-api/menduner/system/trade/order/create',
- url: '/app-api/menduner/system/trade/order/wx-program/create',
- method: 'POST',
- data,
- custom: {
- openEncryption: true,
- showLoading: false,
- auth: true
- }
- })
- }
- // 求职端交易订单 创建
- export const getOrder = async (params) => {
- return request({
- url: '/app-api/menduner/system/trade/order/get/unpaid',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 获得社交用户
- export const getSocialUser = async (type) => {
- return request({
- url: `/app-api/menduner/system/social-user/get?type=${type}`,
- method: 'GET',
- // params,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 获得支付订单 (轮巡支付状态)
- export const getOrderPayStatus = async (params) => {
- return request({
- url: '/app-api/pay/order/get',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 获得指定应用的开启的支付渠道编码列表
- export const getEnableCodeList = async (params) => {
- return request({
- url: '/app-api/pay/channel/get-enable-code-list',
- method: 'GET',
- params,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 提交支付订单
- export const payOrderSubmit = async (data) => {
- return request({
- url: '/app-api/pay/order/submit',
- method: 'POST',
- data,
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
- // 社交绑定,使用 code 授权码
- export const socialUserBind = async (data) => {
- return request({
- url: '/app-api/menduner/system/social-user/bind',
- method: 'POST',
- data: {...data, application: 'recruit_application'}, // 增加一个application参数,招聘端的值如上,不填默认null后台自动认为是求职端小程序
- custom: {
- showLoading: false,
- auth: true
- }
- })
- }
|