import "../base.api"

type (
    CreateInfo {
        // Translated Name | 展示名称
        UserName string `json:"username"`

        // Name | 部门名称
        Title *string `json:"title"`
    }
)

@server(
    group: fastgpt
)

service Wechat {
    @handler setToken
    get /api/fastgpt/set_token () returns (BaseMsgResp)

    // 创建 fastgpt 租户
    @handler CreateFastgpt
    post /api/fastgpt/create (CreateInfo) returns (BaseMsgResp)
}
