description

This commit is contained in:
Chuck1sn
2025-06-26 19:55:53 +08:00
parent 2f7259ca9d
commit 2fb08968ee
3 changed files with 3 additions and 3 deletions

View File

@@ -50,7 +50,7 @@ public class LibraryController {
Library library = new Library();
library.setId(libraryUpsertDto.id());
library.setName(libraryUpsertDto.name());
library.setDesc(libraryUpsertDto.desc());
library.setDescription(libraryUpsertDto.description());
libraryRepository.merge(library);
}

View File

@@ -2,4 +2,4 @@ package com.zl.mjga.dto.knowledge;
import jakarta.validation.constraints.NotEmpty;
public record LibraryUpsertDto(Long id, @NotEmpty String name, String desc) {}
public record LibraryUpsertDto(Long id, @NotEmpty String name, String description) {}

View File

@@ -1,7 +1,7 @@
CREATE TABLE mjga.library (
id BIGSERIAL PRIMARY KEY,
name VARCHAR NOT NULL UNIQUE,
desc VARCHAR,
description VARCHAR,
create_time TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP
);