| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576 |
- import request from '@/utils/request'
- const client_id = 'web'
- const client_secret = '123456'
- const scope = 'server'
- // 登录方法
- export function login(username, password, code, uuid, type, shortMessageCode, unionId) {
- return request({
- url: '/auth/zcLogin',
- method: 'post',
- data: { username, password, code, uuid, type, shortMessageCode, unionId}
- })
- }
- // 刷新方法
- export function refreshToken() {
- return request({
- url: '/auth/refresh',
- method: 'post'
- })
- }
- // 获取用户详细信息
- export function getInfo() {
- return request({
- url: '/system/user/getInfo',
- method: 'get'
- })
- }
- // 退出方法
- export function logout() {
- return request({
- url: '/auth/logout',
- method: 'delete'
- })
- }
- // 获取验证码
- export function getCodeImg() {
- return request({
- url: '/code',
- method: 'get'
- })
- }
- // 查询域名
- export function listSscDomain(sscDomain) {
- return request({
- url: '/system/styleConfig/query/' + sscDomain,
- method: 'get'
- })
- }
- // 发送登陆短信验证码
- export function sendShortMessage(phone, imgCode, uuid) {
- return request({
- url: '/system/message/sendShortMessage',
- method: 'post',
- data : {
- phone : phone,
- verificationCode : '000000_verification_code',
- imgCode : imgCode,
- uuid : uuid
- }
- })
- }
- // 选择企业登陆
- export function chooseCompanyLogin(companyId) {
- return request({
- url: '/system/user/chooseCompanyLogin',
- method: 'post',
- data: {companyId : companyId}
- })
- }
|