2023-07-06 20:59:22 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								import request from './request';
							 | 
						
					
						
							
								
									
										
										
										
											2021-06-07 17:22:07 +08:00
										 
									 
								 
							 | 
							
								
							 | 
							
								
							 | 
							
							
								
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								export default {
							 | 
						
					
						
							
								
									
										
										
										
											2023-07-22 20:51:46 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    login: (param: any) => request.post('/auth/accounts/login', param),
							 | 
						
					
						
							
								
									
										
										
										
											2024-05-13 19:55:43 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    refreshToken: (param: any) => request.get('/auth/accounts/refreshToken', param),
							 | 
						
					
						
							
								
									
										
										
										
											2023-07-22 20:51:46 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    otpVerify: (param: any) => request.post('/auth/accounts/otp-verify', param),
							 | 
						
					
						
							
								
									
										
										
										
											2023-07-06 20:59:22 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    getPublicKey: () => request.get('/common/public-key'),
							 | 
						
					
						
							| 
								
							 | 
							
								
							 | 
							
								
							 | 
							
							
								    getConfigValue: (params: any) => request.get('/sys/configs/value', params),
							 | 
						
					
						
							
								
									
										
										
										
											2024-11-20 22:43:53 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    getServerConf: () => request.get('/sys/configs/server'),
							 | 
						
					
						
							
								
									
										
										
										
											2024-12-08 13:04:23 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    oauth2LoginConfig: () => request.get('/auth/oauth2/config'),
							 | 
						
					
						
							
								
									
										
										
										
											2023-07-22 20:51:46 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    changePwd: (param: any) => request.post('/sys/accounts/change-pwd', param),
							 | 
						
					
						
							
								
									
										
										
										
											2023-07-06 20:59:22 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    captcha: () => request.get('/sys/captcha'),
							 | 
						
					
						
							
								
									
										
										
										
											2023-07-22 20:51:46 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    logout: () => request.post('/auth/accounts/logout'),
							 | 
						
					
						
							
								
									
										
										
										
											2023-07-06 20:59:22 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    getPermissions: () => request.get('/sys/accounts/permissions'),
							 | 
						
					
						
							
								
									
										
										
										
											2023-07-24 22:36:07 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    oauth2Callback: (params: any) => request.get('/auth/oauth2/callback', params),
							 | 
						
					
						
							
								
									
										
										
										
											2023-08-31 21:49:20 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    getLdapEnabled: () => request.get('/auth/ldap/enabled'),
							 | 
						
					
						
							
								
									
										
										
										
											2023-08-23 22:09:41 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    ldapLogin: (param: any) => request.post('/auth/ldap/login', param),
							 | 
						
					
						
							
								
									
										
										
										
											2024-10-21 22:27:42 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								    getFileDetail: (keys: string[]) => request.get(`/sys/files/detail/${keys.join(',')}`),
							 | 
						
					
						
							
								
									
										
										
										
											2023-07-06 20:59:22 +08:00
										 
									 
								 
							 | 
							
								
									
										
									
								
							 | 
							
								
							 | 
							
							
								};
							 |