mirror of
https://gitee.com/youlaitech/youlai-mall.git
synced 2024-12-22 12:48:59 +08:00
chore: 注释优化
This commit is contained in:
parent
c3e9deab4e
commit
7691dec175
@ -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 {
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
**/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user