Documentation
¶
Index ¶
- func AddExpense(upd Expenses) error
- func AddExpensesApprover(upd ExpensesApprover) error
- func ChangeExpenseResult(id int64, result int) error
- func ChangeExpenseStatus(id int64, status int) error
- func CheckExpenseApprover(id, userId int64) (int64, int)
- func CountExpense(condArr map[string]string) int64
- func CountExpenseApproval(condArr map[string]string) int64
- func DeleteExpense(id int64) error
- func ListExpenseApproverProcessHtml(expenseid int64) string
- func UpdateExpense(id int64, upd Expenses) error
- func UpdateExpensesApprover(id int64, upd ExpensesApprover) error
- type ExpenseApproverProcess
- type Expenses
- type ExpensesApprover
- type TmpExpenseCount
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddExpense ¶
func AddExpensesApprover ¶
func AddExpensesApprover(upd ExpensesApprover) error
func ChangeExpenseResult ¶
func ChangeExpenseStatus ¶
func CountExpense ¶
func CountExpenseApproval ¶
func DeleteExpense ¶
func UpdateExpense ¶
func UpdateExpensesApprover ¶
func UpdateExpensesApprover(id int64, upd ExpensesApprover) error
Types ¶
type ExpenseApproverProcess ¶
type ExpenseApproverProcess struct { Userid int64 Realname string Avatar string Position string Status int Summary string Changed int64 }
func ListExpenseApproverProcess ¶
func ListExpenseApproverProcess(expenseid int64) (num int64, err error, user []ExpenseApproverProcess)
type Expenses ¶
type Expenses struct { Id int64 `orm:"pk;column(expenseid);"` Userid int64 Amounts string Types string Contents string Total float64 Picture string Result int Status int Approverids string Created int64 Changed int64 }
func GetExpense ¶
func ListExpense ¶
type ExpensesApprover ¶
type ExpensesApprover struct { Id int64 `orm:"pk;column(approverid);"` Expenseid int64 Userid int64 Summary string Status int Created int64 Changed int64 }
func (*ExpensesApprover) TableName ¶
func (this *ExpensesApprover) TableName() string
type TmpExpenseCount ¶
type TmpExpenseCount struct {
Num int64
}
Click to show internal directories.
Click to hide internal directories.