feat: update
This commit is contained in:
@@ -53,8 +53,8 @@ public class SchisandraShareCommentReplyController {
|
|||||||
* @author zlg
|
* @author zlg
|
||||||
* @date: 2024/7/20 14:39
|
* @date: 2024/7/20 14:39
|
||||||
*/
|
*/
|
||||||
@GetMapping("addlike")
|
@PostMapping("addlike")
|
||||||
public void addLike(@RequestParam SchisandraUserLikesCommentDTO schisandraUserLikesCommentDTO) {
|
public void addLike(@RequestBody SchisandraUserLikesCommentDTO schisandraUserLikesCommentDTO) {
|
||||||
Preconditions.checkNotNull(schisandraUserLikesCommentDTO);
|
Preconditions.checkNotNull(schisandraUserLikesCommentDTO);
|
||||||
SchisandraUserLikesCommentBO schisandraUserLikesCommentBO = SchisandraUserLikesCommentDTOConverter.INSTANCE.convertDTOToBO(schisandraUserLikesCommentDTO);
|
SchisandraUserLikesCommentBO schisandraUserLikesCommentBO = SchisandraUserLikesCommentDTOConverter.INSTANCE.convertDTOToBO(schisandraUserLikesCommentDTO);
|
||||||
schisandraUserLikesCommentBO.setLike(true);
|
schisandraUserLikesCommentBO.setLike(true);
|
||||||
@@ -72,8 +72,8 @@ public class SchisandraShareCommentReplyController {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("dellike")
|
@PostMapping("dellike")
|
||||||
public void delLike(@RequestParam SchisandraUserLikesCommentDTO schisandraUserLikesCommentDTO) {
|
public void delLike(@RequestBody SchisandraUserLikesCommentDTO schisandraUserLikesCommentDTO) {
|
||||||
|
|
||||||
Preconditions.checkNotNull(schisandraUserLikesCommentDTO);
|
Preconditions.checkNotNull(schisandraUserLikesCommentDTO);
|
||||||
SchisandraUserLikesCommentBO schisandraUserLikesCommentBO = SchisandraUserLikesCommentDTOConverter.INSTANCE.convertDTOToBO(schisandraUserLikesCommentDTO);
|
SchisandraUserLikesCommentBO schisandraUserLikesCommentBO = SchisandraUserLikesCommentDTOConverter.INSTANCE.convertDTOToBO(schisandraUserLikesCommentDTO);
|
||||||
|
@@ -4,6 +4,7 @@ import com.mybatisflex.annotation.Column;
|
|||||||
import com.mybatisflex.annotation.Id;
|
import com.mybatisflex.annotation.Id;
|
||||||
import com.mybatisflex.annotation.KeyType;
|
import com.mybatisflex.annotation.KeyType;
|
||||||
import com.mybatisflex.annotation.Table;
|
import com.mybatisflex.annotation.Table;
|
||||||
|
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@@ -23,7 +24,7 @@ public class SchisandraUserLikesComment implements Serializable {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Id(value = "id", keyType = KeyType.Auto)
|
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@@ -4,6 +4,7 @@ import com.mybatisflex.annotation.Column;
|
|||||||
import com.mybatisflex.annotation.Id;
|
import com.mybatisflex.annotation.Id;
|
||||||
import com.mybatisflex.annotation.KeyType;
|
import com.mybatisflex.annotation.KeyType;
|
||||||
import com.mybatisflex.annotation.Table;
|
import com.mybatisflex.annotation.Table;
|
||||||
|
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
@@ -23,7 +24,7 @@ public class SchisandraUserLikesDetail implements Serializable {
|
|||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Id(value = "id", keyType = KeyType.Auto)
|
@Id(keyType=KeyType.Generator, value= KeyGenerators.flexId)
|
||||||
private String id;
|
private String id;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user