123456789101112131415161718192021222324252627282930313233 |
- import "../base.api"
- type (
- AvatarInfo {
- }
- // start avatar request | 启动数字人
- AvatarConfigReq {
- // 名片 ID
- CardId *uint64 `json:"card_id,optional"`
- }
- // start avatar response | 启动数字人
- AvatarConfigResp {
- BaseDataInfo
- // Agent information | Agent数据
- Data AvatarInfo `json:"data"`
- }
- )
- @server(
- jwt: Auth
- group: agent
- middleware: Miniprogram
- )
- service Wechat {
- // get avatar configuration | 获取数字人配置信息
- @handler getApiAvatarConfig
- post /api/avatar/config (AvatarConfigReq) returns (AvatarConfigResp)
- }
|