|
|
|
|
@ -8,6 +8,7 @@ import com.flossom.common.log.enums.BusinessType;
|
|
|
|
|
import com.flossom.common.security.annotation.RequiresPermissions;
|
|
|
|
|
import com.flossom.miniProgram.service.ICtleaveMeassageService;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.validation.annotation.Validated;
|
|
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
@ -26,7 +27,7 @@ public class CtleaveMessageApiController extends BaseController {
|
|
|
|
|
*/
|
|
|
|
|
@Log(title = "共创管理-留言管理", businessType = BusinessType.INSERT)
|
|
|
|
|
@PostMapping("/saveMessage")
|
|
|
|
|
public AjaxResult add(@RequestBody CtLeaveMessage ctLeaveMessage)
|
|
|
|
|
public AjaxResult add(@RequestBody @Validated CtLeaveMessage ctLeaveMessage)
|
|
|
|
|
{
|
|
|
|
|
return toAjax(ctleaveMeassageService.saveCtleaveMeassage(ctLeaveMessage));
|
|
|
|
|
}
|
|
|
|
|
|