From fd178a7c9e545cab9b6e165118bf663e06a546f2 Mon Sep 17 00:00:00 2001 From: RIceWqy <1840169763@qq.com> Date: Mon, 18 Dec 2023 20:50:42 +0800 Subject: [PATCH] init --- README.md | 2 +- init/Category.go | 3 +++ module/category/Category.go | 1 + module/category/init.go | 12 ++++++++++++ 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 init/Category.go create mode 100644 module/category/Category.go create mode 100644 module/category/init.go diff --git a/README.md b/README.md index 355af94..9c214c4 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# digital-employee-server-go +# fushouxian-server diff --git a/init/Category.go b/init/Category.go new file mode 100644 index 0000000..4bf5381 --- /dev/null +++ b/init/Category.go @@ -0,0 +1,3 @@ +package init + +import _ "src/module/category" diff --git a/module/category/Category.go b/module/category/Category.go new file mode 100644 index 0000000..79661ad --- /dev/null +++ b/module/category/Category.go @@ -0,0 +1 @@ +package category diff --git a/module/category/init.go b/module/category/init.go new file mode 100644 index 0000000..e09a92c --- /dev/null +++ b/module/category/init.go @@ -0,0 +1,12 @@ +package category + +func (Category) TableName() string { + return "category" +} + +type Category struct { + Id int64 `json:"id"` + FormTemplateId int64 `json:"form_template_id"` + DataId int64 `json:"data_id"` + Data string `json:"data"` +}