|
@@ -11,10 +11,7 @@ import com.qmth.ops.biz.domain.LlmOrgConfig;
|
|
|
import com.qmth.ops.biz.domain.Org;
|
|
|
import com.qmth.ops.biz.query.LlmOrgConfigQuery;
|
|
|
import com.qmth.ops.biz.service.*;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestAttribute;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
|
|
@@ -63,9 +60,10 @@ public class LlmOrgConfigController {
|
|
|
}
|
|
|
|
|
|
@PostMapping("/update/permit_count")
|
|
|
- public LlmOrgConfig updatePermit(@RequestAttribute AdminSession adminSession, LlmOrgConfig config) {
|
|
|
+ public LlmOrgConfig updatePermit(@RequestAttribute AdminSession adminSession, LlmOrgConfig config,
|
|
|
+ @RequestParam Integer count) {
|
|
|
adminSession.hasPermission(Permission.LLM_ORG_CONFIG_EDIT);
|
|
|
- llmOrgConfigService.permit(config, config.getPermitCount());
|
|
|
+ llmOrgConfigService.permit(config, count);
|
|
|
return llmOrgConfigService.findByOrgAndAppType(config.getOrgId(), config.getAppType());
|
|
|
}
|
|
|
|