fssa-batch3 / fssa-batch3/sec_b_santhosh.devendran__corejava_project_2
Create user
- 主要语言
- HTML
- 星标
- 0
- 派生
- 0
- PR 合并指标
- 30 天内没有已合并 PR
描述
### Feature: Create User
>Create a new user in a database.
#### Pre-requisites:
- [ ] user DAO( create user )
- [ ] user service ( create(User user) )
#### Validations:
- [ ] Form Validation
* create( User user )
* user null
* name ( null, empty, pattern )
* email ( null, empty, pattern )
* password ( null, empty, pattern )
* phone number ( length, >= 600000001 && <= 9999999999 )
- [ ] Business Validation
* Email Already exists
#### Messages:
* Invalid User object
* Invalid name input
* Invalid email input
* Invalid password input
* Invalid phone number input
* User already exists
#### Flow:
```mermaid
graph TD;
A[Value Passed to UserService - User Object] --> B[Form Validation & Business Validation]
B--> C{Validation Result}
C -- Valid --> D[Value Passed to UserDAO]
D --> E[Store Value in Database]
C -- Invalid --> F[Validation Exception]
```
贡献指南
这个仓库没有索引到贡献指南
调研方向
从 UserService create(User user) 入口点开始,跟踪表单和业务验证流程,直到 UserDAO 和数据库。将列出的验证规则和消息作为验收标准,包括拒绝重复的电子邮件地址和无效的用户字段。
由索引模型根据 Issue 内容生成。
评估
- 领域
- backend, databases
- Issue 类型
- 功能
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100