chore: 注释优化

This commit is contained in:
郝先瑞 2023-10-31 17:16:17 +08:00
parent c3e9deab4e
commit 7691dec175
5 changed files with 18 additions and 9 deletions

View File

@ -1,4 +1,4 @@
package com.youlai.mall.pms.common.enums;
package com.youlai.mall.pms.enums;
import lombok.Getter;
@ -6,7 +6,7 @@ import lombok.Getter;
* 商品属性类型枚举
*
* @author haoxr
* @date 2022/12/20
* @since 2022/12/20
*/
public enum AttributeTypeEnum {

View File

@ -4,11 +4,18 @@ import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;
import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;
/**
* 基础实体类
*/
@Data
public class BaseEntity implements Serializable {
@Serial
private static final long serialVersionUID = 1L;
@TableField(fill = FieldFill.INSERT)

View File

@ -1,18 +1,19 @@
package com.youlai.common.base;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import java.io.Serializable;
/**
* 基础分页请求对象
*
* @author huawei
* @desc 基础分页请求对象
* @email huawei_code@163.com
* @since 2021/2/28
*/
@Data
@Schema
public class BasePageQuery {
public class BasePageQuery implements Serializable {
@Schema(description = "页码", example = "1")
private int pageNum = 1;

View File

@ -1,12 +1,13 @@
package com.youlai.common.result;
import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import java.io.Serializable;
/**
* 自定义响应码
*
* @author haoxr
* @since 2020-06-23
**/

View File

@ -35,8 +35,8 @@ public class CaptchaHandler implements HandlerFunction<ServerResponse> {
@Override
public Mono<ServerResponse> handle(ServerRequest request) {
MathGenerator mathGenerator=new MathGenerator(1);
CircleCaptcha circleCaptcha =new CircleCaptcha(150,25,4,3);
MathGenerator mathGenerator = new MathGenerator(1);
CircleCaptcha circleCaptcha = new CircleCaptcha(150, 25, 4, 3);
circleCaptcha.setGenerator(mathGenerator);
String captchaCode = circleCaptcha.getCode(); // 验证码
String captchaBase64 = circleCaptcha.getImageBase64Data(); // 验证码图片Base64