package com.red.circle.other.inner.endpoint.material.props.api;

import com.red.circle.framework.dto.PageResult;
import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.cmd.material.RoomThemeUserCustomizeApprovalCmd;
import com.red.circle.other.inner.model.cmd.material.RoomThemeUserCustomizeOpsPageQryCmd;
import com.red.circle.other.inner.model.dto.material.RoomThemeUserCustomizeDTO;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 用户自定义主题.
 *
 * @author pengliang on 2023/12/4
 */
public interface RoomThemeUserCustomizeClientApi {

  String API_PREFIX = "/room/theme/user/customize/client";

  /**
   * 运营后台， 用户自定义列表.
   */
  @PostMapping("/pageOps")
  ResultResponse<PageResult<RoomThemeUserCustomizeDTO>> pageOps(
      @RequestBody @Validated RoomThemeUserCustomizeOpsPageQryCmd pageQryCmd);


  /**
   * 修改审核状态状态.
   */
  @PostMapping("/updateApprovalStatus")
  ResultResponse<Void> updateApprovalStatus(
      @RequestBody @Validated RoomThemeUserCustomizeApprovalCmd cmd);

}
