Browse Source

updaste

master
dengbiao 1 month ago
parent
commit
356f24ca1c
2 changed files with 11 additions and 1 deletions
  1. +1
    -1
      src/super/dao/user_open_permission_dao.go
  2. +10
    -0
      src/super/model/open_permission.go

+ 1
- 1
src/super/dao/user_open_permission_dao.go View File

@@ -8,7 +8,7 @@ type UserOpenPermissionDao interface {


type GetUserOpenPermissionResp struct { type GetUserOpenPermissionResp struct {
model.UserOpenPermission `xorm:"extends"` model.UserOpenPermission `xorm:"extends"`
model.Permission `xorm:"extends"`
model.OpenPermission `xorm:"extends"`
} }


func (GetUserOpenPermissionResp) TableName() string { func (GetUserOpenPermissionResp) TableName() string {


+ 10
- 0
src/super/model/open_permission.go View File

@@ -0,0 +1,10 @@
package model

type OpenPermission struct {
Id int `json:"id" xorm:"not null pk autoincr INT(11)"`
Name string `json:"name" xorm:"not null default '' comment('名称') VARCHAR(255)"`
Action string `json:"action" xorm:"not null default '' comment('路由') unique VARCHAR(255)"`
State int `json:"state" xorm:"not null default 1 comment('状态(1:正常 2:废弃)') TINYINT(1)"`
CreateAt string `json:"create_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"`
UpdateAt string `json:"update_at" xorm:"not null default 'CURRENT_TIMESTAMP' DATETIME"`
}

Loading…
Cancel
Save