package com.testor.module.portal.news.controller;

import com.testor.module.portal.news.model.dto.NewsFormDTO;
import com.testor.module.portal.section.model.domain.PortalSection;
import com.tongtech.tfw.backend.common.biz.models.BaseResponse;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/portal/news")
@Api(tags = "新闻")
@Slf4j
public class NewsController {



    /* Generated Method*/
    @ApiOperation(value = "创建信息", notes = "Add PortalSection")
    @PostMapping(value = "/create")
    public BaseResponse<PortalSection> addEntity(@RequestBody NewsFormDTO newsFormDTO) {
        BaseResponse<PortalSection> baseResponse = new BaseResponse<>();

        return baseResponse;
    }
}
