Documentation
¶
Index ¶
- Variables
- func PortalCmd(portal ice.Any)
- type ApplyStatus
- type Container
- type OrderStatus
- type PlaceType
- type Placer
- type Portal
- func (s Portal) AfterMigrate(m *ice.Message, arg ...string)
- func (s Portal) BeforeMigrate(m *ice.Message, arg ...string)
- func (s Portal) Create(m *ice.Message, arg ...string)
- func (s Portal) Exit(m *ice.Message, arg ...string)
- func (s Portal) Init(m *ice.Message, arg ...string)
- func (s Portal) Inputs(m *ice.Message, arg ...string)
- func (s Portal) Link(m *ice.Message, arg ...string) string
- func (s Portal) List(m *ice.Message, arg ...string)
- func (s Portal) PlaceCreate(m *ice.Message, arg ...string)
- func (s Portal) PlaceRemove(m *ice.Message, arg ...string)
- func (s Portal) ScanQRCode(m *ice.Message, arg ...string)
- func (s Portal) SetIcons(m *ice.Message, arg ...string)
- func (s Portal) Show(m *ice.Message, arg ...string)
- type Table
- func (s Table) AfterMigrate(m *ice.Message, arg ...string)
- func (s Table) ChangeStatus(m *ice.Message, uid string, from, to int, arg ...string) *ice.Message
- func (s Table) Display(m *ice.Message, file string) *ice.Message
- func (s Table) Exit(m *ice.Message, arg ...string)
- func (s Table) Init(m *ice.Message, arg ...string)
- func (s Table) Inputs(m *ice.Message, arg ...string)
- func (s Table) Link(m *ice.Message, arg ...string) string
- func (s Table) List(m *ice.Message, arg ...string) *ice.Message
- func (s Table) RecordEvent(m *ice.Message, uid, info string, arg ...string)
- func (s Table) RenameAppend(m *ice.Message, arg ...string) Table
- func (s Table) RewriteAppend(m *ice.Message, arg ...string) *ice.Message
- func (s Table) Select(m *ice.Message, arg ...string) *ice.Message
- func (s Table) SelectDetail(m *ice.Message, arg ...string) *ice.Message
- func (s Table) SelectJoinCity(m *ice.Message) *ice.Message
- func (s Table) SelectJoinUser(m *ice.Message) *ice.Message
- func (s Table) SendTemplate(m *ice.Message, from, user_uid, title string, arg ...string)
- func (s Table) TablesWithRole(m *ice.Message, arg []string, userPlace UserPlacer, place Placer, ...) *ice.Message
- func (s Table) TransRole(m *ice.Message, arg ...string) string
- func (s Table) TransValue(m *ice.Message, key string, arg ...string) string
- func (s Table) Update(m *ice.Message, data ice.Map, arg ...string)
- type Tables
- type UserPlaceRole
- type UserPlacer
Constants ¶
This section is empty.
Variables ¶
View Source
var ApplyStatusList = map[ApplyStatus]string{ ApplyCreate: "create", ApplyCancel: "cancel", ApplySubmit: "submit", ApplyRejected: "rejected", ApplyApproved: "approved", }
View Source
var OrderStatusList = map[OrderStatus]string{ OrderCreate: "create", OrderRejected: "rejected", OrderApproved: "approved", }
View Source
var PlaceTypeList = map[PlaceType]string{ PlaceHouse: "house", PlaceHotel: "hotel", PlaceStore: "store", PlaceSchool: "school", PlaceOffice: "office", PlacePublic: "public", PlaceFactory: "factory", PlaceHospital: "hospital", }
View Source
var UserPlaceRoleList = map[UserPlaceRole]string{ UserPlaceCreator: "creator", UserPlaceVisitor: "visitor", UserPlaceLandlord: "landlord", UserPlaceTenant: "tenant", UserPlaceAdmin: "admin", }
Functions ¶
Types ¶
type ApplyStatus ¶
type ApplyStatus int
const ( ApplyCreate ApplyStatus = iota ApplyCancel ApplySubmit ApplyRejected ApplyApproved )
func (ApplyStatus) String ¶
func (s ApplyStatus) String() string
type OrderStatus ¶
type OrderStatus int
const ( OrderCreate OrderStatus = iota OrderRejected OrderApproved )
func (OrderStatus) String ¶
func (s OrderStatus) String() string
type Placer ¶
type Portal ¶
func NewPortal ¶
func NewPortal(userPlace UserPlacer, place Placer, street Container) Portal
type Table ¶
type Table struct { db.Table UserPlace UserPlacer Place Placer Street Container // contains filtered or unexported fields }
func NewTable ¶
func NewTable(userPlace UserPlacer, place Placer, street Container) Table
func (Table) ChangeStatus ¶
func (Table) RecordEvent ¶
func (Table) RewriteAppend ¶
func (Table) SendTemplate ¶
func (Table) TablesWithRole ¶
func (Table) TransValue ¶
type Tables ¶
type Tables struct { Table // contains filtered or unexported fields }
func NewTables ¶
func NewTables(userPlace UserPlacer, place Placer, street Container) Tables
type UserPlaceRole ¶
type UserPlaceRole int
const ( UserPlaceCreator UserPlaceRole = iota UserPlaceVisitor UserPlaceLandlord UserPlaceTenant UserPlaceAdmin )
func (UserPlaceRole) String ¶
func (s UserPlaceRole) String() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.