123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154 |
- import request from '@/axios'
- /*
- * 获取图片验证码
- *
- */
- export function getImgCode() {
- return request({
- url: `/manager/pCode`,
- method: 'get'
- })
- }
- /*
- * 发送手机验证码
- *
- */
- export function sendPhoneCode(phone, vCode) {
- return request({
- url: `/manager/send/${phone}/${vCode}`,
- method: 'get'
- })
- }
- /*
- * 登录
- *
- */
- export function login(data) {
- return request({
- url: `/manager/login`,
- method: 'post',
- data: data
- })
- }
- /*
- * 获取当前登录者信息
- * @param null
- *
- */
- export function getUserInfo(data) {
- return request({
- url: `/manager/userContext`,
- method: 'get'
- })
- }
- /*
- * 获取用户信息
- *
- *
- */
- export function getUserInfoById(userId) {
- return request({
- url: `/manager/userInfo/${userId}`,
- method: 'get'
- })
- }
- /*
- * 切换组织
- * @param null
- */
- export function selectOrangaized(data) {
- return request({
- url: `/manager/userContext/organization`,
- method: 'post',
- data: data
- })
- }
- /*
- * 切换项目
- * @param null
- */
- export function selectProject(projectId) {
- return request({
- url: `/manager/userContext/project/${projectId}`,
- method: 'put',
- })
- }
- /*
- * 切换身份
- * @param null
- */
- export function selectIdentity(identityId) {
- return request({
- url: `/manager/userContext/identity/${identityId}`,
- method: 'put'
- })
- }
- /*
- * 根据组织获取项目列表
- * @param null
- *
- */
- export function getOrganizedProjectList(organizationId) {
- return request({
- url: `/api/project/getOrganization/${organizationId}/`,
- method: 'get',
- })
- }
- /*
- * 修改个人信息
- * @param {Object} data = {loginName用户名|pwd密码|name昵称|sex性别|phone手机号|email邮箱|portrait头像|organizationId组织类型}
- *
- */
- export function updateUserDetails(data) {
- return request({
- url: `/manager/userInfo/update`,
- method: 'post',
- data: data
- })
- }
- /*
- * 刷新上下文
- * @param null
- *
- */
- export function refresh() {
- return request({
- url: `/manager/userContext/refresh`,
- method: 'get',
- })
- }
- /*
- * 获取项目组织下个人信息
- *
- */
- export function getOperationUserInfo(data) {
- return request({
- url: `/api/info/get`,
- method: 'post',
- data: data
- })
- }
- /*
- * 新增项目组织下个人信息
- *
- */
- export function insertOperationUserInfo(data) {
- return request({
- url: `/api/info`,
- method: 'post',
- data: data
- })
- }
- /*
- * 修改项目组织下个人信息
- *
- */
- export function updateOperationUserInfo(data) {
- return request({
- url: `/api/info`,
- method: 'put',
- data: data
- })
- }
|