|
@@ -31,9 +31,6 @@ func NewDoAllocAgentLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DoAl
|
|
|
func (l *DoAllocAgentLogic) DoAllocAgent(req *types.AllocAgentInfo) (*types.BaseMsgResp, error) {
|
|
|
resp := types.BaseMsgResp{}
|
|
|
|
|
|
- if len(req.Agents) == 0 {
|
|
|
- return nil, errorx.NewInvalidArgumentError("智能体ID不能为空")
|
|
|
- }
|
|
|
if req.OrganizationId == nil && req.UserId == nil {
|
|
|
return nil, errorx.NewInvalidArgumentError("租户ID和用户ID不能都为空")
|
|
|
}
|