112
社区成员
发帖
与我相关
我的任务
分享| 这个作业属于哪个课程 | 202501福大-软件工程实践-w班 |
|---|---|
| 这个作业要求在哪里 | 团队作业——Bate冲刺 |
| 这个作业的目标 | 完成bata冲刺 |
| 其他参考文献 | 阿里巴巴Java开发手册终极版v1.3.0、华为内部代码规范、Google代码规范 |
src/
├── components/ # 公共组件
│ ├── common/ # 通用组件
│ └── business/ # 业务组件
├── views/ # 页面组件
├── router/ # 路由配置
├── store/ # 状态管理
├── utils/ # 工具函数
├── assets/ # 静态资源
├── styles/ # 全局样式
├── api/ # API接口
└── constants/ # 常量定义
UserLogin.vue// 路由懒加载,提高首屏加载速度
const routes = [
{
path: '/login',
name: 'Login',
component: () => import('@/views/Login.vue')
}
]
feature/功能描述fix/问题描述UserServicegetUserInfoMAX_LOGIN_ATTEMPTScom.dormitory.service// 遵循阿里巴巴Java开发手册
public class UserServiceImpl implements UserService {
private static final Logger LOGGER = LoggerFactory.getLogger(UserServiceImpl.class);
@Override
public UserDTO getUserById(Long userId) {
// 方法体不超过50行
if (userId == null) {
throw new IllegalArgumentException("用户ID不能为空");
}
return userMapper.selectById(userId);
}
}
@RestController和@RequestMapping