curdAdmin

command module
v0.0.0-...-a92999b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

README

curdAdmin

功能
基于antdAdmin,gin根据golang struct 生成一套curd后台管理系统
使用的技术栈
  • gin
  • gorm
  • antd pro admin

结构体

        //@curd:all
        //@name:测试
        type Banner struct {
        	//@curd:name=标题;search=like
        	title    string
        	Field2    string
        }

注释

  • 结构体 -curd:
    • ctrl:控制器
    • dao:dao文件
    • entity:绑定数据文件
    • all:全部文件
    • name: 名称(用于生成前端代码的菜单等)
  • 字段 (以@curd开头的注释)
    • name:字段中文名(生成table的columns,表单的字段名)
    • search:搜索方式:(like:模糊搜索)

命令行

参数 简写 作用
-- buildConf -b 生成配置文件模版
-- conf -c 指定配置文件
-- source -s 指定源文件,会根据这个文件生成代码,可以是文件和路径

例子

curdAdmin -c ./curd.conf.yml -s ./handler/model`

Documentation

Overview

Copyright © 2021 NAME HERE <EMAIL ADDRESS>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
cmd
initialize
web

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL