syntax = "v1" info( desc: "activity gateway服务接口定义" ) type ( CreateUserMbtiResultParam{ OutId string `json:"out_id"` Name string `json:"name"` MbtiRes int64 `json:"mbti_res"` } CreateUserMbtiResultData {} GetUserMbtiResultParam { OutId string `json:"out_id"` } GetUserMbtiResultData{ ShareHost string `json:"share_host"` Has bool `json:"has"` Name string `json:"name"` result int64 `json:"result"` } // 高考重开器 CreateGaokaoRemakeParam { Did string `json:"did"` Text string `json:"text"` } CreateGaokaoRemakeData { SessionId string `json:"session_id"` Index int64 `json:"index"` ShareHost string `json:"share_host"` } GetGaokaoRemakeResultParam { Did string `json:"did"` SessionId string `json:"session_id"` Index int64 `json:"index"` } GetGaokaoRemakeResultData{ Index int64 `json:"index"` Text string `json:"text"` IsEnd bool `json:"is_end"` Result string `json:"result"` Knowledge int64 `json:"knowledge"` Wealth int64 `json:"wealth"` Abruptness int64 `json:"abruptness"` Influence int64 `json:"influence"` Luck int64 `json:"luck"` } // AGI侧聊天机器人限流通用接口 AIChatbotCheckWaitParam{ Did string `json:"did"` FromApp string `json:"from_app"` GameName string `json:"game_name"` } AIChatbotCheckWaitData{ IsWait bool `json:"is_wait"` // 是否等待 WaitTime int64 `json:"wait_time"` // 等待时间 } ) @server( prefix: /activity_zero group: activity/mbti check_permission: false check_freq: false ) service gateway { @handler CreateUserMbtiResultHandler post /create_user_mbti_result (CreateUserMbtiResultParam) returns (CreateUserMbtiResultData) @handler GetUserMbtiResultHandler post /get_user_mbti_result (GetUserMbtiResultParam) returns (GetUserMbtiResultData) } dag CreateUserMbtiResultHandler ( CreateUserMbtiResult () ) dag GetUserMbtiResultHandler ( GetUserMbtiResult () ) @server( prefix: /activity_zero group: activity/gaokao_remake check_permission: false check_freq: false ) service gateway { @handler CreateGaokaoRemakeHandler post /create_gaokao_remake (CreateGaokaoRemakeParam) returns (CreateGaokaoRemakeData) @handler GetGaokaoRemakeResultHandler post /get_gaokao_remake_result (GetGaokaoRemakeResultParam) returns (GetGaokaoRemakeResultData) } dag CreateGaokaoRemakeHandler ( CreateGaokaoRemake () ) dag GetGaokaoRemakeResultHandler ( GetGaokaoRemakeResult () ) @server( prefix: /activity_zero group: activity/common check_permission: false check_freq: false ) service gateway { @handler AIChatbotCheckWaitHandler post /ai_chatbot_check_wait (AIChatbotCheckWaitParam) returns (AIChatbotCheckWaitData) } dag AIChatbotCheckWaitHandler ( AIChatbotCheckWait () )