package model

import (
	v1 "kami/api/authority/v1"
	authRuleV1 "kami/api/sys_auth_rule/v1"
)

type SysAuthRule struct {
	v1.SysAuthRule
	Children []*SysAuthRule `json:"children"`
}

type RuleSearchInput struct {
	v1.MenuCreateReq
}

type SysAuthRuleInfoOutput struct {
	authRuleV1.SysAuthRuleInfoRes
}

type SysAuthRuleInput struct {
	v1.SysAuthRuleReq
}

type SysAuthRuleWithIDInput struct {
	v1.SysAuthRuleWithID
}

type LoginType string

const (
	LoginTypeAdmin    LoginType = "admin"
	LoginTypeMerchant LoginType = "merchant"
	LoginTypeAuth     LoginType = "auth"
)

type SysAuthLoginWithEverythingOutput struct {
	LoginType LoginType
	UserId    string
}
