co_enum_financial

package
v0.1.115 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Financial = financial{
	InOutType:      InOutType,
	TradeType:      TradeType,
	PermissionType: PermissionType,
}
View Source
var InOutType = inOutType{
	In:  enum.New[InOutTypeEnum](1, "收入"),
	Out: enum.New[InOutTypeEnum](2, "支出"),
}
View Source
var (
	PermissionType = permissionType{
		ViewInvoiceDetail:  permission.New(5953153121845334, "ViewDetail", "查看发票详情", "查看发票详情信息"),
		ViewInvoice:        permission.New(5953153121845335, "ViewInvoice", "查看发票抬头信息", "查看发票抬头信息"),
		ViewBankCardDetail: permission.New(5953153121845336, "ViewBankCardDetail", "查看提现账号", "查看提现账号信息"),

		BankCardList:      permission.New(5953153121845337, "BankCardList", "提现账号列表", "查看所有提现账号"),
		InvoiceList:       permission.New(5953153121845338, "InvoiceList", "发票抬头列表", "查看所有发票抬头"),
		InvoiceDetailList: permission.New(5953153121845339, "InvoiceDetailList", "发票详情列表", "查看所有发票详情"),

		AuditInvoiceDetail: permission.New(5953153121845340, "AuditInvoiceDetail", "审核发票", "审核发票申请"),
		MakeInvoiceDetail:  permission.New(5953153121845341, "MakeInvoiceDetail", "开发票", "添加发票详情记录"),

		CreateInvoice:  permission.New(5953153121845342, "CreateInvoice", "添加发票抬头", "添加发票抬头信息"),
		CreateBankCard: permission.New(5953153121845343, "CreateBankCard", "申请提现账号", "添加提现账号信息"),

		DeleteInvoice:  permission.New(5953153121845344, "DeleteInvoice", "删除发票抬头", "删除发票抬头信息"),
		DeleteBankCard: permission.New(5953153121845345, "DeleteBankCard", "删除提现账号", "删除提现账号信息"),

		GetAccountBalance: permission.New(5953153121845346, "GetAccountBalance", "查看余额", "查看账号余额"),
	}
)
View Source
var TradeType = tradeType{
	Transfer:        enum.New[TradeTypeEnum](1, "转账"),
	Consumption:     enum.New[TradeTypeEnum](2, "消费"),
	Refund:          enum.New[TradeTypeEnum](4, "退款"),
	Commission:      enum.New[TradeTypeEnum](8, "佣金"),
	SecurityDeposit: enum.New[TradeTypeEnum](16, "保证金"),
	EarnestMoney:    enum.New[TradeTypeEnum](32, "诚意金"),
	ServiceCharge:   enum.New[TradeTypeEnum](64, "手续费/服务费"),
	CashWithdrawal:  enum.New[TradeTypeEnum](128, "提现"),
	Recharge:        enum.New[TradeTypeEnum](256, "充值"),
	OperatingIncome: enum.New[TradeTypeEnum](512, "营收"),
	Other:           enum.New[TradeTypeEnum](8192, "其它"),
}

Functions

This section is empty.

Types

type InOutTypeEnum

type InOutTypeEnum enum.IEnumCode[int]

type PermissionTypeEnum

type PermissionTypeEnum = *permission.SysPermissionTree

type TradeTypeEnum

type TradeTypeEnum enum.IEnumCode[int]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL