feat: update
This commit is contained in:
@@ -53,8 +53,8 @@ public class SchisandraShareCommentReplyController {
|
||||
* @author zlg
|
||||
* @date: 2024/7/20 14:39
|
||||
*/
|
||||
@GetMapping("addlike")
|
||||
public void addLike(@RequestParam SchisandraUserLikesCommentDTO schisandraUserLikesCommentDTO) {
|
||||
@PostMapping("addlike")
|
||||
public void addLike(@RequestBody SchisandraUserLikesCommentDTO schisandraUserLikesCommentDTO) {
|
||||
Preconditions.checkNotNull(schisandraUserLikesCommentDTO);
|
||||
SchisandraUserLikesCommentBO schisandraUserLikesCommentBO = SchisandraUserLikesCommentDTOConverter.INSTANCE.convertDTOToBO(schisandraUserLikesCommentDTO);
|
||||
schisandraUserLikesCommentBO.setLike(true);
|
||||
@@ -72,8 +72,8 @@ public class SchisandraShareCommentReplyController {
|
||||
);
|
||||
}
|
||||
|
||||
@GetMapping("dellike")
|
||||
public void delLike(@RequestParam SchisandraUserLikesCommentDTO schisandraUserLikesCommentDTO) {
|
||||
@PostMapping("dellike")
|
||||
public void delLike(@RequestBody SchisandraUserLikesCommentDTO schisandraUserLikesCommentDTO) {
|
||||
|
||||
Preconditions.checkNotNull(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.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import lombok.Data;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
|
@@ -4,6 +4,7 @@ import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.KeyType;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import com.mybatisflex.core.keygen.KeyGenerators;
|
||||
import lombok.Data;
|
||||
|
||||
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;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user