biz.investortool #
fn get #
fn get() !&InvestorTool
fn new #
fn new() &InvestorTool
Factory methods
fn play #
fn play(mut plbook playbook.PlayBook) !&InvestorTool
struct Company #
@[heap]
struct Company {
pub mut:
oid string
short_code string
name string
current_nr_shares int
current_share_value string
description string
admins []string
comments []string
}
struct Employee #
@[heap]
struct Employee {
pub mut:
oid string
user_ref string
company_ref string
status string
start_date ?ourtime.OurTime
end_date ?ourtime.OurTime
salary ?currency.Amount
salary_low ?currency.Amount
outstanding ?currency.Amount
tft_grant f64
reward_pool_points int
salary_low_date ?ourtime.OurTime
comments string
}
TODO add currency and ourtime types
struct Investor #
@[heap]
struct Investor {
pub mut:
oid string
name string
code string
description string
user_refs []string
admins []string
comments []string
}
struct InvestorTool #
@[heap]
struct InvestorTool {
pub mut:
companies map[string]&Company
employees map[string]&Employee
investments map[string]&InvestmentShares
investors map[string]&Investor
users map[string]&User
}
fn (InvestorTool) user_new #
fn (mut it InvestorTool) user_new() &User
Factory methods
fn (InvestorTool) company_new #
fn (mut it InvestorTool) company_new() &Company
fn (InvestorTool) employee_new #
fn (mut it InvestorTool) employee_new() &Employee
fn (InvestorTool) investor_new #
fn (mut it InvestorTool) investor_new() &Investor
fn (InvestorTool) user_add #
fn (mut it InvestorTool) user_add(user &User) !
Add methods
fn (InvestorTool) company_add #
fn (mut it InvestorTool) company_add(company &Company) !
fn (InvestorTool) employee_add #
fn (mut it InvestorTool) employee_add(employee &Employee) !
fn (InvestorTool) investor_add #
fn (mut it InvestorTool) investor_add(investor &Investor) !
fn (InvestorTool) check #
fn (mut it InvestorTool) check() !
struct User #
@[heap]
struct User {
pub mut:
oid string
usercode string
name string
investor_ids []string
status string
info_links []string
telnrs []string
emails []string
secret string
}