correct all comments of functions in service

This commit is contained in:
rainyan
2020-04-10 10:36:15 +08:00
parent e0916eeb63
commit 849f0dcf43
15 changed files with 214 additions and 199 deletions
+6 -6
View File
@@ -8,8 +8,8 @@ import (
// @title DeleteBaseMenu
// @description 删除基础路由
// @auth (2020/04/05 20:22 )
// @param newPassword string
// @auth (2020/04/05 20:22)
// @param id float64
// @return err error
func DeleteBaseMenu(id float64) (err error) {
err = global.GVA_DB.Where("parent_id = ?", id).First(&model.SysBaseMenu{}).Error
@@ -29,8 +29,8 @@ func DeleteBaseMenu(id float64) (err error) {
// @title UpdateBaseMenu
// @description 更新路由
// @auth (2020/04/05 20:22 )
// @param newPassword string
// @auth (2020/04/05 20:22)
// @param menu model.SysBaseMenu
// @return err error
func UpdateBaseMenu(menu model.SysBaseMenu) (err error) {
upDateMap := make(map[string]interface{})
@@ -49,8 +49,8 @@ func UpdateBaseMenu(menu model.SysBaseMenu) (err error) {
// @title GetBaseMenuById
// @description get current menus, 返回当前选中menu
// @auth (2020/04/05 20:22 )
// @param newPassword string
// @auth (2020/04/05 20:22)
// @param id float64
// @return err error
func GetBaseMenuById(id float64) (err error, menu model.SysBaseMenu) {
err = global.GVA_DB.Where("id = ?", id).First(&menu).Error