Administrator
19 hours ago 29674c95a7c1f57233c4182a72d01917a0be9689
src/main/java/cc/mrbird/febs/ai/controller/productQuestionLabel/AiProductQuestionLabelController.java
@@ -14,6 +14,7 @@
import org.springframework.web.bind.annotation.*;
import javax.validation.Valid;
import java.util.List;
import java.util.Map;
/**
@@ -51,4 +52,12 @@
        return aiProductQuestionLabelService.update(dto);
    }
    @GetMapping("listAll")
    @ControllerEndpoint(operation = "获取所有标签", exceptionMessage = "获取标签失败")
    public FebsResponse listAll() {
        String companyId = getCurrentUserCompanyId();
        List<AiProductQuestionLabel> labels = aiProductQuestionLabelService.listAllByCompanyId(companyId);
        return new FebsResponse().success().data(labels);
    }
}