广告平台(总站长使用)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

agent_role_dao.go 762 B

4 months ago
12345678910111213141516171819202122232425
  1. package dao
  2. import (
  3. "applet/app/db/model"
  4. "xorm.io/xorm"
  5. )
  6. type AgentRoleDao interface {
  7. FindAgentRole() (*[]model.AgentRole, error)
  8. GetAgentRole() (m *model.AgentRole, err error)
  9. UpdateAgentRole(m *model.AgentRole, columns ...string) (int64, error)
  10. AgentRoleDeleteBySession(session *xorm.Session, id interface{}) (int64, error)
  11. AgentRoleInsert(m *model.AgentRole) (int, error)
  12. FindPermissionGroupByAgentRole(roleId int) (list []*AgentRolePermissionGroup, total int64, err error)
  13. }
  14. type AgentRolePermissionGroup struct {
  15. model.AgentRole `xorm:"extends"`
  16. model.AgentRolePermissionGroup `xorm:"extends"`
  17. model.AgentPermissionGroup `xorm:"extends"`
  18. }
  19. func (AgentRolePermissionGroup) TableName() string {
  20. return "agent_role"
  21. }