# MessageMediaService
> 消息媒介管理

---

## findAllMessageMedias
> 获取所有支持的媒介

- 角色：`admin`
- HTTP：`POST https://backend.dooki.cloud/MessageMediaService/findAllMessageMedias`
- RPC：`rpc findAllMessageMedias (FindAllMessageMediasRequest) returns (FindAllMessageMediasResponse);`

**请求对象 (`FindAllMessageMediasRequest`)**

```json
{}
```

**响应对象 (`FindAllMessageMediasResponse`)**

```json
{
  "messageMedias": "[]MessageMedia"
}
```

**调用示例**

```bash
curl -X POST "https://backend.dooki.cloud/MessageMediaService/findAllMessageMedias" \
  -H "Content-Type: application/json" \
  -H "X-Edge-Access-Token: <YOUR_TOKEN>" \
  -d '{
    ...
  }'
```

---

## sendMediaMessage
> 发送媒介信息

- 角色：`admin`
- HTTP：`POST https://backend.dooki.cloud/MessageMediaService/sendMediaMessage`
- RPC：`rpc sendMediaMessage(SendMediaMessageRequest) returns (RPCSuccess);`

**请求对象 (`SendMediaMessageRequest`)**

```json
{
  "mediaType": "string // 媒介类型",
  "optionsJSON": "bytes // 媒介参数",
  "user": "string // 接收用户",
  "subject": "string // 标题",
  "body": "string // 内容"
}
```

**响应对象 (`RPCSuccess`)**

```json
{}
```

**调用示例**

```bash
curl -X POST "https://backend.dooki.cloud/MessageMediaService/sendMediaMessage" \
  -H "Content-Type: application/json" \
  -H "X-Edge-Access-Token: <YOUR_TOKEN>" \
  -d '{
    ...
  }'
```

---
