Skip to content

Commit

Permalink
新增点赞功能
Browse files Browse the repository at this point in the history
  • Loading branch information
TreasureJade committed Dec 18, 2019
1 parent 492fab4 commit d676e55
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/com/swpu/uchain/blog/enums/ResultEnum.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,9 @@ public enum ResultEnum {
FILE_UPLOAD_ERROR(17,"文件上传失败"),
TAG_IS_ALREADY_EXIST(18,"标签已存在" ),
TAG_NOT_EXIST(19,"标签不存在" ),
DEFAULT_GROUP_CAN_NOT_DELETE(20,"默认分组不能删除" );
DEFAULT_GROUP_CAN_NOT_DELETE(20,"默认分组不能删除" ),
TYPE_IS_ALREADY_EXIST(21,"分类已经存在" ),
TYPE_NOT_EXIST(22,"分类不存在" );
private Integer code;

private String msg;
Expand Down
19 changes: 19 additions & 0 deletions src/main/java/com/swpu/uchain/blog/form/GiveLikeForm.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.swpu.uchain.blog.form;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
* @author hobo
* @description
*/
@Data
public class GiveLikeForm {

@ApiModelProperty("博客id")
private long blogId;

@ApiModelProperty("是否点赞 false为取消")
private Boolean isLike;

}

0 comments on commit d676e55

Please sign in to comment.