|
@@ -2912,3 +2912,252 @@ type ChatReq struct {
|
|
UserId *uint64 `json:"user_id"`
|
|
UserId *uint64 `json:"user_id"`
|
|
Text *string `json:"text"`
|
|
Text *string `json:"text"`
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+// swagger:model ChatReq
|
|
|
|
+type ChatReq struct {
|
|
|
|
+ // 大模型生成内容
|
|
|
|
+ AvatarId *string `json:"avatar_id"`
|
|
|
|
+ UserId *uint64 `json:"user_id"`
|
|
|
|
+ Text *string `json:"text"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// swagger:model DashboardInfo
|
|
|
|
+type DashboardInfo struct {
|
|
|
|
+ BaseIDInfo
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// swagger:model ChartsReq
|
|
|
|
+type ChartsReq struct {
|
|
|
|
+ StartDate *string `json:"start_date"`
|
|
|
|
+ EndDate *string `json:"end_date"`
|
|
|
|
+ // 租户id
|
|
|
|
+ OrganizationId *uint64 `json:"organizationId,optional"`
|
|
|
|
+ Wxid *string `json:"wxid,optional"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// swagger:model ChartsResp
|
|
|
|
+type ChartsResp struct {
|
|
|
|
+ BaseDataInfo
|
|
|
|
+ Data *ChartsData `json:"data"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type ChartsData struct {
|
|
|
|
+ AiResponse *ChartsUint `json:"ai_response"`
|
|
|
|
+ SopRun *ChartsUint `json:"sop_run"`
|
|
|
|
+ TotalFriend *ChartsUint `json:"total_friend"`
|
|
|
|
+ TotalGroup *ChartsUint `json:"total_group"`
|
|
|
|
+ AccountBalance *ChartsUint `json:"account_balance"`
|
|
|
|
+ ConsumeToken *ChartsUint `json:"consume_token"`
|
|
|
|
+ ActiveUser *ChartsUint `json:"active_user"`
|
|
|
|
+ NewUser *ChartsInt `json:"new_user"`
|
|
|
|
+ LabelDist []LabelsData `json:"label_dist"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type ChartsUint struct {
|
|
|
|
+ Count uint64 `json:"count"`
|
|
|
|
+ Rate *float32 `json:"rate"`
|
|
|
|
+ Label []string `json:"label"`
|
|
|
|
+ Val []uint64 `json:"val"`
|
|
|
|
+ LabelText string `json:"labelText"`
|
|
|
|
+ Tip *string `json:"tip"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type ChartsInt struct {
|
|
|
|
+ Count int64 `json:"count"`
|
|
|
|
+ Rate *float32 `json:"rate"`
|
|
|
|
+ Label []string `json:"label"`
|
|
|
|
+ Val []int64 `json:"val"`
|
|
|
|
+ LabelText string `json:"labelText"`
|
|
|
|
+ Tip *string `json:"tip"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type LabelsData struct {
|
|
|
|
+ Value uint64 `json:"value"`
|
|
|
|
+ Name string `json:"name"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// swagger:model WxReq
|
|
|
|
+type WxReq struct {
|
|
|
|
+ PageInfo
|
|
|
|
+ EndDate *string `json:"end_date"`
|
|
|
|
+ // 租户id
|
|
|
|
+ OrganizationId *uint64 `json:"organizationId,optional"`
|
|
|
|
+ Wxid *string `json:"wxid,optional"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// swagger:model WxResp
|
|
|
|
+type WxResp struct {
|
|
|
|
+ BaseDataInfo
|
|
|
|
+ Data WxList `json:"data"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type WxList struct {
|
|
|
|
+ BaseListInfo
|
|
|
|
+ Data []WxData `json:"data"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+type WxData struct {
|
|
|
|
+ Nickname string `json:"nickname"`
|
|
|
|
+ TotalFriend uint64 `json:"total_friend"`
|
|
|
|
+ TotalGroup uint64 `json:"total_group"`
|
|
|
|
+ InteractionRate float32 `json:"interaction_rate"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// The data of credit balance information | CreditBalance信息
|
|
|
|
+// swagger:model CreditBalanceInfo
|
|
|
|
+type CreditBalanceInfo struct {
|
|
|
|
+ BaseIDInfo
|
|
|
|
+ // user_id | 用户ID
|
|
|
|
+ UserId *string `json:"userId,optional"`
|
|
|
|
+ // role | 角色设定
|
|
|
|
+ Balance *float32 `json:"balance,optional"`
|
|
|
|
+ // status | 状态 1-正常 2-禁用
|
|
|
|
+ Status *int `json:"status,optional"`
|
|
|
|
+ // organization_id | 租户ID
|
|
|
|
+ OrganizationId *uint64 `json:"organizationId,optional"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// The response data of credit balance list | CreditBalance列表数据
|
|
|
|
+// swagger:model CreditBalanceListResp
|
|
|
|
+type CreditBalanceListResp struct {
|
|
|
|
+ BaseDataInfo
|
|
|
|
+ // CreditBalance list data | CreditBalance列表数据
|
|
|
|
+ Data CreditBalanceListInfo `json:"data"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CreditBalance list data | CreditBalance列表数据
|
|
|
|
+// swagger:model CreditBalanceListInfo
|
|
|
|
+type CreditBalanceListInfo struct {
|
|
|
|
+ BaseListInfo
|
|
|
|
+ // The API list data | CreditBalance列表数据
|
|
|
|
+ Data []CreditBalanceInfo `json:"data"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// Get credit balance list request params | CreditBalance列表请求参数
|
|
|
|
+// swagger:model CreditBalanceListReq
|
|
|
|
+type CreditBalanceListReq struct {
|
|
|
|
+ PageInfo
|
|
|
|
+ // user_id | 用户ID
|
|
|
|
+ UserId *string `json:"userId,optional"`
|
|
|
|
+ OrganizationId *uint64 `json:"organizationId,optional"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CreditBalance information response | CreditBalance信息返回体
|
|
|
|
+// swagger:model CreditBalanceInfoResp
|
|
|
|
+type CreditBalanceInfoResp struct {
|
|
|
|
+ BaseDataInfo
|
|
|
|
+ // CreditBalance information | CreditBalance数据
|
|
|
|
+ Data CreditBalanceInfo `json:"data"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// The data of credit usage information | CreditUsage信息
|
|
|
|
+// swagger:model CreditUsageInfo
|
|
|
|
+type CreditUsageInfo struct {
|
|
|
|
+ BaseIDInfo
|
|
|
|
+ // user_id | 用户ID
|
|
|
|
+ UserId *string `json:"userId,optional"`
|
|
|
|
+ // number | 积分改变量
|
|
|
|
+ Number *float32 `json:"number,optional"`
|
|
|
|
+ // status | 状态 1-正常 2-禁用
|
|
|
|
+ Status *int `json:"status,optional"`
|
|
|
|
+ // ntype | 积分变化类型:1-消耗 2-增加
|
|
|
|
+ Ntype *int `json:"ntype,optional"`
|
|
|
|
+ // table | 积分变化表名
|
|
|
|
+ Table *string `json:"table,optional"`
|
|
|
|
+ // organization_id | 租户ID
|
|
|
|
+ OrganizationId *uint64 `json:"organizationId,optional"`
|
|
|
|
+ // nid | 积分变化关联信息ID
|
|
|
|
+ Nid *uint64 `json:"nid,optional"`
|
|
|
|
+ // reason | 积分变动原因
|
|
|
|
+ Reason *string `json:"reason,optional"`
|
|
|
|
+ // operator | 积分变动人
|
|
|
|
+ Operator *string `json:"operator,optional"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// The response data of credit usage list | CreditUsage列表数据
|
|
|
|
+// swagger:model CreditUsageListResp
|
|
|
|
+type CreditUsageListResp struct {
|
|
|
|
+ BaseDataInfo
|
|
|
|
+ // CreditUsage list data | CreditUsage列表数据
|
|
|
|
+ Data CreditUsageListInfo `json:"data"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CreditUsage list data | CreditUsage列表数据
|
|
|
|
+// swagger:model CreditUsageListInfo
|
|
|
|
+type CreditUsageListInfo struct {
|
|
|
|
+ BaseListInfo
|
|
|
|
+ // The API list data | CreditUsage列表数据
|
|
|
|
+ Data []CreditUsageInfo `json:"data"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// Get credit usage list request params | CreditUsage列表请求参数
|
|
|
|
+// swagger:model CreditUsageListReq
|
|
|
|
+type CreditUsageListReq struct {
|
|
|
|
+ PageInfo
|
|
|
|
+ // user_id | 用户ID
|
|
|
|
+ UserId *string `json:"userId,optional"`
|
|
|
|
+ // table | 积分变化表名
|
|
|
|
+ Table *string `json:"table,optional"`
|
|
|
|
+ // reason | 积分变动原因
|
|
|
|
+ Reason *string `json:"reason,optional"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// CreditUsage information response | CreditUsage信息返回体
|
|
|
|
+// swagger:model CreditUsageInfoResp
|
|
|
|
+type CreditUsageInfoResp struct {
|
|
|
|
+ BaseDataInfo
|
|
|
|
+ // CreditUsage information | CreditUsage数据
|
|
|
|
+ Data CreditUsageInfo `json:"data"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// The data of pay recharge information | PayRecharge信息
|
|
|
|
+// swagger:model PayRechargeInfo
|
|
|
|
+type PayRechargeInfo struct {
|
|
|
|
+ BaseIDInfo
|
|
|
|
+ // user_id | 用户ID
|
|
|
|
+ UserId *string `json:"userId,optional"`
|
|
|
|
+ // number | 变化积分数
|
|
|
|
+ Number *float32 `json:"number,optional"`
|
|
|
|
+ // status | 状态 1-正常 2-禁用
|
|
|
|
+ Status *int `json:"status,optional"`
|
|
|
|
+ // money | 充值钱数
|
|
|
|
+ Money *float32 `json:"money,optional"`
|
|
|
|
+ // out_trade_no | 外部订单号
|
|
|
|
+ OutTradeNo *string `json:"outTradeNo,optional"`
|
|
|
|
+ // organization_id | 租户ID
|
|
|
|
+ OrganizationId *uint64 `json:"organizationId,optional"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// The response data of pay recharge list | PayRecharge列表数据
|
|
|
|
+// swagger:model PayRechargeListResp
|
|
|
|
+type PayRechargeListResp struct {
|
|
|
|
+ BaseDataInfo
|
|
|
|
+ // PayRecharge list data | PayRecharge列表数据
|
|
|
|
+ Data PayRechargeListInfo `json:"data"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// PayRecharge list data | PayRecharge列表数据
|
|
|
|
+// swagger:model PayRechargeListInfo
|
|
|
|
+type PayRechargeListInfo struct {
|
|
|
|
+ BaseListInfo
|
|
|
|
+ // The API list data | PayRecharge列表数据
|
|
|
|
+ Data []PayRechargeInfo `json:"data"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// Get pay recharge list request params | PayRecharge列表请求参数
|
|
|
|
+// swagger:model PayRechargeListReq
|
|
|
|
+type PayRechargeListReq struct {
|
|
|
|
+ PageInfo
|
|
|
|
+ // user_id | 用户ID
|
|
|
|
+ UserId *string `json:"userId,optional"`
|
|
|
|
+ // out_trade_no | 外部订单号
|
|
|
|
+ OutTradeNo *string `json:"outTradeNo,optional"`
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
+// PayRecharge information response | PayRecharge信息返回体
|
|
|
|
+// swagger:model PayRechargeInfoResp
|
|
|
|
+type PayRechargeInfoResp struct {
|
|
|
|
+ BaseDataInfo
|
|
|
|
+ // PayRecharge information | PayRecharge数据
|
|
|
|
+ Data PayRechargeInfo `json:"data"`
|
|
|
|
+}
|