Initial commit: backend code

This commit is contained in:
Agent
2026-03-20 04:59:00 +00:00
commit e7c7f3b174
42 changed files with 2855 additions and 0 deletions

View File

@@ -0,0 +1,44 @@
package com.example.building.service;
import java.util.Map;
/**
* 认证服务接口
*/
public interface AuthService {
/**
* 发送验证码
*/
void sendCode(String phone);
/**
* 手机号验证码登录
*/
Map<String, Object> phoneLogin(String phone, String code);
/**
* 微信扫码登录
*/
Map<String, Object> wechatLogin(String code);
/**
* 支付宝扫码登录
*/
Map<String, Object> alipayLogin(String code);
/**
* 刷新Token
*/
Map<String, Object> refreshToken(String refreshToken);
/**
* 获取当前用户信息
*/
Map<String, Object> getCurrentUser(String userId);
/**
* 退出登录
*/
void logout(String token);
}