Browse Source

增加OcrSupplierVO字段

luoshi 11 months ago
parent
commit
74c5900b6f

+ 4 - 6
src/main/java/com/qmth/ops/api/controller/admin/LlmOrgConfigController.java

@@ -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());
     }
 

+ 11 - 0
src/main/java/com/qmth/ops/api/vo/OcrSupplierVO.java

@@ -8,6 +8,8 @@ public class OcrSupplierVO {
 
     private String name;
 
+    private Integer qps;
+
     private Long createTime;
 
     private Long updateTime;
@@ -15,6 +17,7 @@ public class OcrSupplierVO {
     public OcrSupplierVO(OcrSupplier supplier) {
         this.id = supplier.getId();
         this.name = supplier.getName();
+        this.qps = supplier.getQps();
         this.createTime = supplier.getCreateTime();
         this.updateTime = supplier.getUpdateTime();
     }
@@ -35,6 +38,14 @@ public class OcrSupplierVO {
         this.name = name;
     }
 
+    public Integer getQps() {
+        return qps;
+    }
+
+    public void setQps(Integer qps) {
+        this.qps = qps;
+    }
+
     public Long getCreateTime() {
         return createTime;
     }