|
12345678910111213141516171819202122232425 |
- package dao
-
- import (
- "applet/app/db/model"
- "xorm.io/xorm"
- )
-
- type AgentRoleDao interface {
- FindAgentRole() (*[]model.AgentRole, error)
- GetAgentRole() (m *model.AgentRole, err error)
- UpdateAgentRole(m *model.AgentRole, columns ...string) (int64, error)
- AgentRoleDeleteBySession(session *xorm.Session, id interface{}) (int64, error)
- AgentRoleInsert(m *model.AgentRole) (int, error)
- FindPermissionGroupByAgentRole(roleId int) (list []*AgentRolePermissionGroup, total int64, err error)
- }
-
- type AgentRolePermissionGroup struct {
- model.AgentRole `xorm:"extends"`
- model.AgentRolePermissionGroup `xorm:"extends"`
- model.AgentPermissionGroup `xorm:"extends"`
- }
-
- func (AgentRolePermissionGroup) TableName() string {
- return "agent_role"
- }
|