service

package
v1.0.17 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: LGPL-3.0 Imports: 27 Imported by: 0

Documentation

Overview

*

  • 广告-服务类
  • @author
  • @since 2021/11/15
  • @File : ad

*

  • 广告位-服务类
  • @author
  • @since 2021/11/15
  • @File : ad_sort

*

  • 城市-服务类
  • @author
  • @since 2021/11/13
  • @File : city

*

  • 配置-服务类
  • @author
  • @since 2021/11/13
  • @File : config

*

  • 配置数据-服务类
  • @author
  • @since 2021/11/13
  • @File : config_data

*

  • 用户-服务类
  • @author
  • @since 2021/11/11
  • @File : user

*

  • 部门-服务类
  • @author
  • @since 2021/9/13
  • @File : dept

*

  • 字典-服务类
  • @author
  • @since 2021/11/13
  • @File : dict

*

  • 字典数据-服务类
  • @author
  • @since 2021/11/13
  • @File : dict_data

*

  • 演示一管理-服务类
  • @author
  • @since 2022-04-19
  • @File : example

*

  • 演示二管理-服务类
  • @author
  • @since 2022-04-19
  • @File : example2

*

  • 代码生成器-服务类
  • @author
  • @since 2021/11/15
  • @File : generate

*

  • 站点-服务类
  • @author
  • @since 2021/11/13
  • @File : item

*

  • 栏目-服务类
  • @author
  • @since 2021/11/13
  • @File : item_cate

*

  • 职级管理-服务类
  • @author
  • @since 2021/8/20
  • @File : level

*

  • 友链-服务类
  • @author
  • @since 2021/11/13
  • @File : link

*

  • 登录-服务类
  • @author
  • @since 2021/9/7
  • @File : login

*

  • 登录日志-服务类
  • @author
  • @since 2021/11/12
  • @File : login_log

*

  • 会员-服务类
  • @author
  • @since 2021/11/13
  • @File : member

*

  • 会员等级-服务类
  • @author
  • @since 2021/11/13
  • @File : member_level

*

  • 菜单-服务类
  • @author
  • @since 2021/9/9
  • @File : menu

*

  • 通知公告-服务类
  • @author
  • @since 2021/11/13
  • @File : notice

*

  • 操作日志-服务类
  • @author
  • @since 2021/11/12
  • @File : oper_log

*

  • 岗位-服务类
  • @author
  • @since 2021/9/10
  • @File : position

*

  • 角色-服务类
  • @author
  • @since 2021/9/13
  • @File : role

*

  • 角色菜单-服务类
  • @author
  • @since 2021/9/14
  • @File : role_menu

*

  • 文件上传-服务类
  • @author
  • @since 2021/11/18
  • @File : upload

*

  • 用户-服务类
  • @author
  • @since 2021/11/11
  • @File : user

*

  • 用户角色-服务类
  • @author
  • @since 2021/11/12
  • @File : user_role

Index

Constants

This section is empty.

Variables

View Source
View Source
var AdSort = new(adSortService)
View Source
var City = new(cityService)
View Source
var Config = new(configService)
View Source
var ConfigData = new(configDataService)
View Source
var Dept = new(deptService)
View Source
var Dict = new(dictService)
View Source
var DictData = new(dictDataService)
View Source
var Example = new(exampleService)

中间件管理服务

View Source
var Example2 = new(example2Service)

中间件管理服务

View Source
var Generate = new(generateService)

中间件管理服务

View Source
var Item = new(itemService)
View Source
var ItemCate = new(itemCateService)
View Source
var Level = new(levelService)

中间件管理服务

View Source
var Link = new(linkService)
View Source
var Login = new(loginService)

中间件管理服务

View Source
var LoginLog = new(loginLogService)
View Source
var Member = new(memberService)
View Source
var MemberLevel = new(memberLevelService)
View Source
var Menu = new(menuService)

中间件管理服务

View Source
var Notice = new(noticeService)
View Source
var OperLog = new(operLogService)
View Source
var Position = new(positionService)
View Source
var Role = new(roleService)
View Source
var RoleMenu = new(roleMenuService)
View Source
var Upload = new(uploadService)

中间件管理服务

View Source
var User = new(userService)
View Source
var UserRole = new(userRoleService)

Functions

func GenerateController

func GenerateController(dataList *common.ArrayList, authorName string, moduleName string, moduleTitle string) error

生成控制器

func GenerateDto

func GenerateDto(dataList *common.ArrayList, authorName string, moduleName string, moduleTitle string) error

生成Dto

func GenerateEdit

func GenerateEdit(dataList *common.ArrayList, moduleName string, moduleTitle string) error

生成编辑表单

func GenerateIndex

func GenerateIndex(dataList *common.ArrayList, moduleName string, moduleTitle string) error

生成列表页

func GenerateInfoVo

func GenerateInfoVo(dataList *common.ArrayList, authorName string, moduleName string, moduleTitle string) error

生成Vo

func GenerateJs

func GenerateJs(dataList *common.ArrayList, authorName string, moduleName string, moduleTitle string) error

生成模块JS文件

func GeneratePermission

func GeneratePermission(modelName string, modelTitle string, userId int) error

生成菜单和权限

func GenerateRouter

func GenerateRouter(dataList *common.ArrayList, authorName string, moduleName string, moduleTitle string) error

生成路由文件

func GenerateService

func GenerateService(dataList *common.ArrayList, authorName string, moduleName string, moduleTitle string) error

生成服务类

func GetColumnList

func GetColumnList(tableName string) (*common.ArrayList, error)

获取表字段列表

func LoadTemplate

func LoadTemplate(templateName string, data interface{}, isReplace bool) (string, error)

读取模板

Types

type FileInfo

type FileInfo struct {
	FileName string `json:"fileName"`
	FileSize int64  `json:"fileSize"`
	FileUrl  string `json:"fileUrl"`
	FileType string `json:"fileType"`
}

上传得文件信息

Jump to

Keyboard shortcuts

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