add user restriction

This commit is contained in:
Robin COuret
2026-03-06 16:31:40 +01:00
parent a243149bf1
commit a06e9c3633
37 changed files with 359 additions and 215 deletions

View File

@@ -1,7 +1,13 @@
interface KnowledgeCreate{
content: string,
uri: string,
}
interface Knowledge {
id: number | null,
content: string,
uri: string,
user: User
}
interface Question {
@@ -9,12 +15,17 @@ interface Question {
question: string,
knowledgeId: number,
metric: Metric | null
user: User
}
interface Metric {
//id: number | null,
interface MetricCreate {
question_id: number,
need_index: number
}
export type {Knowledge, Question, Metric}
interface User {
username: string,
token: string
}
export type {KnowledgeCreate, Knowledge, Question, MetricCreate}