Loading...
Loading...
Compare original and translation side by side
.java.java请确认需要进行代码注释的分类(可多选):
- [ ] Controller(控制器)
- [ ] Service(服务接口)
- [ ] ServiceImpl(服务实现)
- [ ] Application Service(应用服务,DDD架构)
- [ ] Domain Service(领域服务,DDD架构)
- [ ] Feign Service Interface(Feign远程服务接口)
- [ ] Mapper(数据访问层)
- [ ] Model(数据模型)
- [ ] Entity(实体类)
- [ ] BO(业务对象)
- [ ] DTO(数据传输对象)
- [ ] VO(视图对象)
- [ ] DAO(数据访问对象)
- [ ] Repository(仓储)
- [ ] Configuration(配置类)
- [ ] Component(组件类)
- [ ] Utility(工具类)
- [ ] Exception(异常类)
- [ ] 其他(请 specify)请确认需要进行代码注释的分类(可多选):
- [ ] Controller(控制器)
- [ ] Service(服务接口)
- [ ] ServiceImpl(服务实现)
- [ ] Application Service(应用服务,DDD架构)
- [ ] Domain Service(领域服务,DDD架构)
- [ ] Feign Service Interface(Feign远程服务接口)
- [ ] Mapper(数据访问层)
- [ ] Model(数据模型)
- [ ] Entity(实体类)
- [ ] BO(业务对象)
- [ ] DTO(数据传输对象)
- [ ] VO(视图对象)
- [ ] DAO(数据访问对象)
- [ ] Repository(仓储)
- [ ] Configuration(配置类)
- [ ] Component(组件类)
- [ ] Utility(工具类)
- [ ] Exception(异常类)
- [ ] 其他(请 specify)*Controller.java*Service.javaundefined*Controller.java*Service.javaundefined
**Important**:
- Organize by component type
- List all classes that match the selected types
- Include all methods and fields that need comments
- Use checkboxes for tracking progress
**注意事项**:
- 按组件类型组织
- 列出所有匹配所选类型的类
- 包含所有需要添加注释的方法和字段
- 使用复选框跟踪进度/**
* [Class description]
*
* <p>This class [purpose and responsibility]
*
* @author [Author name if available]
* @since [Version or date if available]
*/
public class UserController {/**
* <p>[Class description]</p>
*
* <p>This class [purpose and responsibility]</p>
*
* @author [Author name if available]
* @since [Version or date if available]
*/
public class UserController {/**
* {服务名称}应用服务
*
* <p>{详细描述服务的业务功能、职责和应用场景}</p>
* <p>主要功能包括:</p>
* <ul>
* <li>{功能点1}</li>
* <li>{功能点2}</li>
* <li>{功能点3}</li>
* </ul>
*
* @author system
* @since 2025-01-21
*/
public class UserApplicationService {/**
* {服务名称}领域服务
*
* <p>{详细描述服务的领域职责和业务逻辑}</p>
* <p>主要功能包括:</p>
* <ul>
* <li>{功能点1}</li>
* <li>{功能点2}</li>
* </ul>
*
* @author system
* @since 2025-01-21
*/
public class UserDomainService {/**
* {服务名称}Feign远程服务接口
*
* <p>通过Feign调用{目标服务}的远程接口</p>
* <p>主要功能:</p>
* <ul>
* <li>{接口功能1}</li>
* <li>{接口功能2}</li>
* </ul>
*
* @author system
* @since 2025-01-21
*/
public interface UserFeignService {/**
* [Method description]
*
* @param [paramName] [parameter description]
* @return [return value description]
* @throws [ExceptionType] [exception description]
*/
public UserDTO createUser(@RequestBody UserCreateRequest request) {/**
* <p>[Method description]</p>
*
* <p>[Detailed description]</p>
*
* @param [paramName] [paramType] [parameter description]
* @return [returnType] [return value description]
* @exception [full.package.ExceptionType] [exception description]
*/
public UserDTO createUser(@RequestBody UserCreateRequest request) {/**
* [Field description]
*/
private Long userId;/**
* <p>[Field description]</p>
*
* <p>[Detailed description if needed]</p>
*/
private Long userId;[x]undefined/**
* [Class description]
*
* <p>This class [purpose and responsibility]
*
* @author [Author name if available]
* @since [Version or date if available]
*/
public class UserController {/**
* <p>[Class description]</p>
*
* <p>This class [purpose and responsibility]</p>
*
* @author [Author name if available]
* @since [Version or date if available]
*/
public class UserController {/**
* {服务名称}应用服务
*
* <p>{详细描述服务的业务功能、职责和应用场景}</p>
* <p>主要功能包括:</p>
* <ul>
* <li>{功能点1}</li>
* <li>{功能点2}</li>
* <li>{功能点3}</li>
* </ul>
*
* @author system
* @since 2025-01-21
*/
public class UserApplicationService {/**
* {服务名称}领域服务
*
* <p>{详细描述服务的领域职责和业务逻辑}</p>
* <p>主要功能包括:</p>
* <ul>
* <li>{功能点1}</li>
* <li>{功能点2}</li>
* </ul>
*
* @author system
* @since 2025-01-21
*/
public class UserDomainService {/**
* {服务名称}Feign远程服务接口
*
* <p>通过Feign调用{目标服务}的远程接口</p>
* <p>主要功能:</p>
* <ul>
* <li>{接口功能1}</li>
* <li>{接口功能2}</li>
* </ul>
*
* @author system
* @since 2025-01-21
*/
public interface UserFeignService {/**
* [Method description]
*
* @param [paramName] [parameter description]
* @return [return value description]
* @throws [ExceptionType] [exception description]
*/
public UserDTO createUser(@RequestBody UserCreateRequest request) {/**
* <p>[Method description]</p>
*
* <p>[Detailed description]</p>
*
* @param [paramName] [paramType] [parameter description]
* @return [returnType] [return value description]
* @exception [full.package.ExceptionType] [exception description]
*/
public UserDTO createUser(@RequestBody UserCreateRequest request) {/**
* [Field description]
*/
private Long userId;/**
* <p>[Field description]</p>
*
* <p>[Detailed description if needed]</p>
*/
private Long userId;[x]undefinedundefinedundefined<p><p>description</p>@param paramName paramType description@return returnType description@exception java.lang.Exception description<p><p><p><p><p>description</p>@param paramName paramType description@return returnType description@exception java.lang.Exception description<p><p><p>templates/templates/controller-comment-template.mdtemplates/service-comment-template.mdtemplates/serviceimpl-comment-template.mdtemplates/application-service-comment-template.mdtemplates/domain-service-comment-template.mdtemplates/feign-service-comment-template.mdtemplates/mapper-comment-template.mdtemplates/entity-comment-template.mdtemplates/dto-comment-template.mdtemplates/templates/controller-comment-template.mdtemplates/service-comment-template.mdtemplates/serviceimpl-comment-template.mdtemplates/application-service-comment-template.mdtemplates/domain-service-comment-template.mdtemplates/feign-service-comment-template.mdtemplates/mapper-comment-template.mdtemplates/entity-comment-template.mdtemplates/dto-comment-template.md<p><p>examples/examples/controller-example.mdexamples/service-example.mdexamples/entity-example.mdexamples/full-workflow-example.mdexamples/examples/controller-example.mdexamples/service-example.mdexamples/entity-example.mdexamples/full-workflow-example.md