package com.red.circle.other.inner.endpoint.sys.api;

import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.cmd.sys.SysMessageCopywritingTypeQryCmd;
import com.red.circle.other.inner.model.dto.sys.SysMessageCopywritingTextTypeDTO;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author zongpubin on 2023/11/10
 */
public interface SysMessageCopywritingTypeClientApi {

  String API_PREFIX = "/sys/message-copywriting-type";

  @PostMapping("/pageCopywritingTextType")
  ResultResponse<PageResult<SysMessageCopywritingTextTypeDTO>> pageCopywritingTextType(
      @RequestBody SysMessageCopywritingTypeQryCmd query);

  @PostMapping("/addTypeAndContent")
  ResultResponse<Void> addTypeAndContent(@RequestBody SysMessageCopywritingTextTypeDTO param);

  @PostMapping("/deleteTypeAndContent")
  ResultResponse<Void> deleteTypeAndContent(@RequestParam("id") Long id);
}
