11 changed files with 175 additions and 23 deletions
@ -0,0 +1,56 @@ |
|||
/** |
|||
* Copyright 2018 人人开源 https://www.renren.io
|
|||
* <p> |
|||
* This program is free software: you can redistribute it and/or modify |
|||
* it under the terms of the GNU General Public License as published by |
|||
* the Free Software Foundation, either version 3 of the License, or |
|||
* (at your option) any later version. |
|||
* <p> |
|||
* This program is distributed in the hope that it will be useful, |
|||
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|||
* GNU General Public License for more details. |
|||
* <p> |
|||
* You should have received a copy of the GNU General Public License |
|||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
*/ |
|||
|
|||
package com.epmet.modules.comment.entity; |
|||
|
|||
import com.baomidou.mybatisplus.annotation.TableName; |
|||
|
|||
import com.epmet.commons.mybatis.entity.BaseEpmetEntity; |
|||
import lombok.Data; |
|||
import lombok.EqualsAndHashCode; |
|||
|
|||
import java.util.Date; |
|||
|
|||
/** |
|||
* 话题评论表 |
|||
* |
|||
* @author generator generator@elink-cn.com |
|||
* @since v1.0.0 2020-03-31 |
|||
*/ |
|||
@Data |
|||
@EqualsAndHashCode(callSuper=false) |
|||
@TableName("resi_topic_comment") |
|||
public class ResiTopicCommentEntity extends BaseEpmetEntity { |
|||
|
|||
private static final long serialVersionUID = 1L; |
|||
|
|||
/** |
|||
* 评论内容 |
|||
*/ |
|||
private String commentContent; |
|||
|
|||
/** |
|||
* 话题Id,来自resi_topic |
|||
*/ |
|||
private String topicId; |
|||
|
|||
/** |
|||
* 评论状态 |
|||
*/ |
|||
private String status; |
|||
|
|||
} |
@ -0,0 +1,38 @@ |
|||
package com.epmet.modules.topic.controller; |
|||
|
|||
import com.epmet.commons.tools.annotation.LoginUser; |
|||
import com.epmet.commons.tools.security.dto.TokenDto; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.resi.group.dto.topic.form.ResiTopicPublishFormDTO; |
|||
import org.springframework.web.bind.annotation.RequestBody; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
/** |
|||
* @Description |
|||
* @ClassName ResiTopicController |
|||
* @Author wangc |
|||
* @date 2020.03.31 13:03 |
|||
*/ |
|||
|
|||
@RestController |
|||
@RequestMapping("topic") |
|||
public class ResiTopicController { |
|||
|
|||
/** |
|||
* @Description 组内成员创建话题(身份校验 + 创建话题 + 增加话题记录) |
|||
* @Param TokenDto.class |
|||
* @Param ResiTopicPublishFormDTO.class |
|||
* @return Result |
|||
* @Author wangc |
|||
* @Date 2020.03.31 13:15 |
|||
**/ |
|||
@RequestMapping("createtopic") |
|||
public Result createTopic(@LoginUser TokenDto tokenDto, @RequestBody ResiTopicPublishFormDTO topicPublishFormDTO){ |
|||
|
|||
|
|||
|
|||
return new Result(); |
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue