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"` +}