f
This commit is contained in:
@@ -9,6 +9,36 @@ type SubPortalRegisterCommand struct {
|
||||
InviteToken string `json:"invite_token" binding:"required"`
|
||||
}
|
||||
|
||||
// ListChildApiCallsCommand 下属 API 调用记录查询
|
||||
type ListChildApiCallsCommand struct {
|
||||
ParentUserID string
|
||||
ChildUserID string `form:"child_user_id" binding:"required"`
|
||||
Page int `form:"page"`
|
||||
PageSize int `form:"page_size"`
|
||||
TransactionID string `form:"transaction_id"`
|
||||
ProductName string `form:"product_name"`
|
||||
Status string `form:"status"`
|
||||
StartTime string `form:"start_time"`
|
||||
EndTime string `form:"end_time"`
|
||||
}
|
||||
|
||||
// ListSubordinatesCommand 下属列表查询
|
||||
type ListSubordinatesCommand struct {
|
||||
ParentUserID string
|
||||
Page int `form:"page"`
|
||||
PageSize int `form:"page_size"`
|
||||
Remark string `form:"remark"`
|
||||
Phone string `form:"phone"`
|
||||
CompanyName string `form:"company_name"`
|
||||
}
|
||||
|
||||
// UpdateSubordinateRemarkCommand 更新下属备注
|
||||
type UpdateSubordinateRemarkCommand struct {
|
||||
ParentUserID string
|
||||
ChildUserID string `json:"child_user_id" binding:"required"`
|
||||
Remark string `json:"remark"`
|
||||
}
|
||||
|
||||
// CreateInvitationCommand 主账号创建邀请
|
||||
type CreateInvitationCommand struct {
|
||||
ParentUserID string
|
||||
|
||||
@@ -10,15 +10,24 @@ type CreateInvitationResponse struct {
|
||||
InvitationID string `json:"invitation_id"`
|
||||
}
|
||||
|
||||
// SubordinateProductQuotaItem 下属产品额度
|
||||
type SubordinateProductQuotaItem struct {
|
||||
ProductID string `json:"product_id"`
|
||||
ProductName string `json:"product_name"`
|
||||
AvailableQuota int64 `json:"available_quota"`
|
||||
}
|
||||
|
||||
// SubordinateListItem 下属一条
|
||||
type SubordinateListItem struct {
|
||||
ChildUserID string `json:"child_user_id"`
|
||||
Phone string `json:"phone,omitempty"`
|
||||
LinkID string `json:"link_id"`
|
||||
RegisteredAt time.Time `json:"registered_at"`
|
||||
CompanyName string `json:"company_name"`
|
||||
IsCertified bool `json:"is_certified"`
|
||||
Balance string `json:"balance"`
|
||||
ChildUserID string `json:"child_user_id"`
|
||||
Phone string `json:"phone,omitempty"`
|
||||
LinkID string `json:"link_id"`
|
||||
Remark string `json:"remark"`
|
||||
RegisteredAt time.Time `json:"registered_at"`
|
||||
CompanyName string `json:"company_name"`
|
||||
IsCertified bool `json:"is_certified"`
|
||||
Balance string `json:"balance"`
|
||||
ProductQuotas []SubordinateProductQuotaItem `json:"product_quotas"`
|
||||
}
|
||||
|
||||
// SubordinateListResponse 列表
|
||||
|
||||
Reference in New Issue
Block a user