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

import com.red.circle.framework.dto.ResultResponse;
import com.red.circle.other.inner.model.dto.material.RoomThemeUserCustomizeDTO;
import java.util.Map;
import java.util.Set;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 用户房间主题背包(自定义) 服务类.
 *
 * @author pengliang on 2023/6/6
 */
public interface RoomThemeCustomizeBackpackClientApi {

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

  /**
   * 获取自定义主题
   *
   * @param ids 自定义主题id集合
   * @return ignore
   */
  @PostMapping("/mapByIds")
  ResultResponse<Map<Long, RoomThemeUserCustomizeDTO>> mapByIds(@RequestBody Set<Long> ids);

  /**
   * 获取最新的等待审批自定义主题
   *
   * @param userId 用户id
   * @return ignore
   */
  @GetMapping("/getLatestCustomize")
  ResultResponse<RoomThemeUserCustomizeDTO> getLatestCustomize(@RequestParam("userId") Long userId);

}
