Documentation
¶
Index ¶
- Variables
- func CommandUID(m *ice.Message, cmd string) string
- func PortalCmd(portal ice.Any)
- func ServiceUID(m *ice.Message) string
- type AllowStatus
- type ApplyStatus
- type AuthStatus
- type Container
- type MemberStatus
- type MessageStatus
- type PlaceType
- type Placer
- type Portal
- func (s Portal) AddRecent(m *ice.Message, arg ...string)
- func (s Portal) AfterMigrate(m *ice.Message, arg ...string)
- func (s Portal) AfterPlaceAuth(m *ice.Message, arg ...string)
- func (s Portal) AfterPlaceCreate(m *ice.Message, arg ...string)
- func (s Portal) AfterPlaceRemove(m *ice.Message, arg ...string)
- func (s Portal) BeforeMigrate(m *ice.Message, arg ...string)
- func (s Portal) BeforePlaceAuth(m *ice.Message, arg ...string)
- func (s Portal) BeforePlaceCreate(m *ice.Message, arg ...string)
- func (s Portal) BeforePlaceRemove(m *ice.Message, arg ...string)
- func (s Portal) Command(m *ice.Message, arg ...string)
- func (s Portal) CommandSelect(m *ice.Message, arg ...string)
- func (s Portal) CommandUpdate(m *ice.Message, arg ...string)
- func (s Portal) Create(m *ice.Message, arg ...string)
- func (s Portal) DashboardCreate(m *ice.Message, name string, arg ...string) func()
- func (s Portal) DashboardInsert(m *ice.Message, score int, title, unit string, index ice.Any, field string, ...)
- func (s Portal) DashboardUpdate(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) *ice.Message
- func (s Portal) List(m *ice.Message, arg ...string)
- func (s Portal) MarketInsert(m *ice.Message, arg ...string)
- func (s Portal) Modify(m *ice.Message, arg ...string)
- func (s Portal) PlaceAuth(m *ice.Message, arg ...string)
- func (s Portal) PlaceCmd(m *ice.Message, arg ...string)
- func (s Portal) PlaceCreate(m *ice.Message, arg ...string)
- func (s Portal) PlaceList(m *ice.Message, arg ...string) *ice.Message
- func (s Portal) PlaceListOption(m *ice.Message, arg ...string) *ice.Message
- func (s Portal) PlaceRemove(m *ice.Message, arg ...string)
- func (s Portal) RecordEvent(m *ice.Message, arg ...string)
- func (s Portal) Remove(m *ice.Message, arg ...string)
- func (s Portal) Run(m *ice.Message, arg ...string)
- func (s Portal) SendTemplate(m *ice.Message, arg ...string)
- func (s Portal) Show(m *ice.Message, arg ...string)
- func (s Portal) StorageCreate(m *ice.Message, name string, arg ...string)
- func (s Portal) StorageInsert(m *ice.Message, title, content string)
- func (s Portal) UserPlaceCmd(m *ice.Message, arg ...string)
- func (s Portal) UserPlaceRole(m *ice.Message, arg ...string) *ice.Message
- func (s Portal) ValueCreate(m *ice.Message, arg ...string)
- func (s Portal) ValueList(m *ice.Message, arg ...string)
- func (s Portal) ValueModify(m *ice.Message, arg ...string)
- func (s Portal) ValueRemove(m *ice.Message, arg ...string)
- type Table
- func (s Table) AfterInit(m *ice.Message, arg ...string)
- func (s Table) AfterMigrate(m *ice.Message, arg ...string)
- func (s Table) AuthCreate(m *ice.Message, authType int, fromUID string, arg ...string)
- func (s Table) AutoCmd(m *ice.Message, arg ...ice.Any) *ice.Message
- func (s Table) AutoCmdy(m *ice.Message, arg ...ice.Any) *ice.Message
- func (s Table) BeforeAction(m *ice.Message, arg ...string) *ice.Message
- func (s Table) Button(m *ice.Message, info string, arg ...ice.Any) *ice.Message
- func (s Table) ChangeStatus(m *ice.Message, place_uid, uid string, from, to int, arg ...string) *ice.Message
- func (s Table) CheckRole(m *ice.Message, arg ...string)
- func (s Table) CityCmd(m *ice.Message, arg ...ice.Any) *ice.Message
- func (s Table) CityList(m *ice.Message, arg ...string) *ice.Message
- func (s Table) Create(m *ice.Message, arg ...string)
- func (s Table) CreditCmdy(m *ice.Message, arg ...ice.Any) *ice.Message
- func (s Table) DashboardUpdate(m *ice.Message, arg ...string)
- func (s Table) Display(m *ice.Message, file string) *ice.Message
- func (s Table) DisplayBase(m *ice.Message, file string) *ice.Message
- func (s Table) DoneMessage(m *ice.Message, arg ...string)
- func (s Table) EchoQRCode(m *ice.Message, arg ...string) *ice.Message
- func (s Table) FieldsDefault(m *ice.Message, arg ...string) Table
- func (s Table) GetCommandUID(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) InputsList(m *ice.Message, list ice.Any, arg ...string)
- func (s Table) InputsListRole(m *ice.Message, list ice.Any, arg ...string)
- func (s Table) InputsListSkip(m *ice.Message, list ice.Any, skip string, arg ...string)
- func (s Table) InputsListValue(m *ice.Message, list ice.Any, key string) string
- func (s Table) IsLeader(m *ice.Message) bool
- func (s Table) IsVisitor(m *ice.Message) bool
- func (s Table) IsWorker(m *ice.Message) bool
- func (s Table) LeftJoinValue(m *ice.Message, value, place ice.Any, arg ...string) 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) LoadTrans(m *ice.Message, arg ...string)
- func (s Table) MarketInsert(m *ice.Message, arg ...string)
- func (s Table) MemberList(m *ice.Message, arg ...string)
- func (s Table) Modify(m *ice.Message, arg ...string)
- func (s Table) NoticeList(m *ice.Message, arg ...string)
- func (s Table) Prefix(m *ice.Message, target ice.Any) string
- func (s Table) PrefixPortal(m *ice.Message) string
- func (s Table) ProcessPodCmd(m, msg *ice.Message, arg ...string) *ice.Message
- func (s Table) RecordEvent(m *ice.Message, info string, arg ...string)
- func (s Table) RecordEventWithName(m *ice.Message, info string, arg ...string)
- func (s Table) Remove(m *ice.Message, arg ...string)
- func (s Table) RewriteAppend(m *ice.Message, arg ...string) *ice.Message
- func (s Table) SaveBack(m *ice.Message, arg ...string) func()
- 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) SelectJoinAuth(m *ice.Message, arg ...string) *ice.Message
- func (s Table) SelectJoinCity(m *ice.Message, arg ...string) *ice.Message
- func (s Table) SelectJoinRecent(m *ice.Message, PLACE_UID string, arg ...string) *ice.Message
- func (s Table) SelectJoinService(m *ice.Message, arg ...string) *ice.Message
- func (s Table) SelectJoinUser(m *ice.Message, arg ...string) *ice.Message
- func (s Table) SendMessage(m *ice.Message, from, to string, arg ...string)
- func (s Table) SendTemplate(m *ice.Message, from, to, title string, arg ...string)
- func (s Table) ServiceList(m *ice.Message, arg ...string) *ice.Message
- func (s Table) SettingCmdy(m *ice.Message, arg ...ice.Any) *ice.Message
- func (s Table) SpaceCmd(m *ice.Message, space string, arg ...ice.Any) *ice.Message
- func (s Table) SpaceCmdy(m *ice.Message, space string, arg ...ice.Any) *ice.Message
- func (s Table) SpaceOpsCmd(m *ice.Message, arg ...ice.Any) *ice.Message
- func (s Table) SpaceOpsCmdy(m *ice.Message, arg ...ice.Any) *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.Any, arg ...string)
- func (s Table) UpdateAuth(m *ice.Message, arg ...string)
- func (s Table) UpdateField(m *ice.Message, arg ...string)
- func (s Table) UploadCreate(m *ice.Message, field, uid string, arg ...string)
- func (s Table) UploadUpdate(m *ice.Message, field, uid string, arg ...string)
- func (s Table) UserPlaceInit(m *ice.Message, arg ...string)
- func (s Table) UserPlaceRole(m *ice.Message) int
- func (s Table) ValueCreate(m *ice.Message, arg ...string)
- func (s Table) ValueList(m *ice.Message, arg []string, fields ...ice.Any) *ice.Message
- func (s Table) ValueModel(m *ice.Message, action ice.Any, arg ...string) *ice.Message
- func (s Table) ValueModify(m *ice.Message, arg ...string)
- func (s Table) ValueRemove(m *ice.Message, arg ...string)
- type Tables
- type UserPlaceRole
- type UserPlacer
Constants ¶
This section is empty.
Variables ¶
View Source
var AllowStatusList = map[AllowStatus]string{ AllowCreate: "create", AllowRejected: "rejected", AllowApproved: "approved", }
View Source
var ApplyStatusList = map[ApplyStatus]string{ ApplyCreate: "create", ApplyCancel: "cancel", ApplySubmit: "submit", ApplyRejected: "rejected", ApplyApproved: "approved", }
View Source
var AuthStatusList = map[AuthStatus]string{ AuthCreate: "create", AuthRequest: "request", AuthIssued: "issued", AuthRevoked: "revoked", }
View Source
var MemberStatusList = map[MemberStatus]string{ MemberNormal: "normal", MemberDisabled: "disabled", }
View Source
var MessageStatusList = map[MessageStatus]string{ MessageCreate: "create", MessageRead: "read", MessageDone: "done", }
View Source
var PlaceTypeList = map[PlaceType]string{ PlaceHouse: "house", PlaceStore: "store", PlaceOffice: "office", PlaceSchool: "school", PlacePublic: "public", PlaceFactory: "factory", PlaceHospital: "hospital", }
View Source
var UserPlaceRoleList = map[UserPlaceRole]string{ UserPlaceVisitor: "visitor", UserPlaceCreator: "creator", UserPlaceLandlord: "landlord", UserPlaceTenant: "tenant", UserPlaceAdmin: "admin", }
Functions ¶
Types ¶
type AllowStatus ¶ added in v0.0.4
type AllowStatus int
const ( AllowCreate AllowStatus = iota AllowRejected AllowApproved )
func (AllowStatus) String ¶ added in v0.0.4
func (s AllowStatus) String() string
type ApplyStatus ¶
type ApplyStatus int
const ( ApplyCreate ApplyStatus = iota ApplyCancel ApplySubmit ApplyRejected ApplyApproved )
func (ApplyStatus) String ¶
func (s ApplyStatus) String() string
type AuthStatus ¶ added in v0.0.6
type AuthStatus int
const ( AuthCreate AuthStatus = iota AuthRequest AuthIssued AuthRevoked )
func (AuthStatus) String ¶ added in v0.0.6
func (s AuthStatus) String() string
type MemberStatus ¶ added in v0.0.8
type MemberStatus int
const ( MemberNormal MemberStatus = iota MemberDisabled )
func (MemberStatus) String ¶ added in v0.0.8
func (s MemberStatus) String() string
type MessageStatus ¶ added in v0.0.4
type MessageStatus int
const ( MessageCreate MessageStatus = iota MessageRead MessageDone )
func (MessageStatus) String ¶ added in v0.0.4
func (s MessageStatus) String() string
type Placer ¶
type Portal ¶
func NewPortal ¶
func NewPortal(userPlace UserPlacer, place Placer, street Container) Portal
func (Portal) AfterPlaceAuth ¶ added in v0.0.6
func (Portal) AfterPlaceCreate ¶ added in v0.0.6
func (Portal) AfterPlaceRemove ¶ added in v0.0.6
func (Portal) BeforePlaceAuth ¶ added in v0.0.6
func (Portal) BeforePlaceCreate ¶ added in v0.0.6
func (Portal) BeforePlaceRemove ¶ added in v0.0.6
func (Portal) CommandSelect ¶ added in v0.0.8
func (Portal) CommandUpdate ¶ added in v0.0.8
func (Portal) DashboardCreate ¶ added in v0.0.6
func (Portal) DashboardInsert ¶ added in v0.0.6
func (Portal) DashboardUpdate ¶ added in v0.0.6
func (Portal) MarketInsert ¶ added in v0.0.6
func (Portal) PlaceList ¶ added in v0.0.4
func (Portal) PlaceListOption ¶ added in v0.0.4
func (Portal) RecordEvent ¶ added in v0.0.4
func (Portal) SendTemplate ¶ added in v0.0.4
func (Portal) StorageCreate ¶ added in v0.0.6
func (Portal) StorageInsert ¶ added in v0.0.6
func (Portal) UserPlaceCmd ¶ added in v0.0.4
func (Portal) UserPlaceRole ¶ added in v0.0.4
func (Portal) ValueCreate ¶ added in v0.0.6
func (Portal) ValueModify ¶ added in v0.0.6
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) AuthCreate ¶ added in v0.0.8
func (Table) AutoCmd ¶ added in v0.0.8
func (Table) AutoCmdy ¶ added in v0.0.8
func (Table) BeforeAction ¶ added in v0.0.10
func (Table) Button ¶ added in v0.0.6
func (Table) ChangeStatus ¶
func (Table) CityCmd ¶ added in v0.0.10
func (Table) CityList ¶ added in v0.0.8
func (Table) CreditCmdy ¶ added in v0.0.10
func (Table) DashboardUpdate ¶ added in v0.0.6
func (Table) DisplayBase ¶ added in v0.0.4
func (Table) DoneMessage ¶ added in v0.0.4
func (Table) EchoQRCode ¶ added in v0.0.10
func (Table) FieldsDefault ¶ added in v0.0.6
func (Table) GetCommandUID ¶ added in v0.0.6
func (Table) InputsList ¶ added in v0.0.4
func (Table) InputsListRole ¶ added in v0.0.4
func (Table) InputsListSkip ¶ added in v0.0.8
func (Table) InputsListValue ¶ added in v0.0.4
func (Table) LeftJoinValue ¶ added in v0.0.8
func (Table) MarketInsert ¶ added in v0.0.6
func (Table) ProcessPodCmd ¶ added in v0.0.6
func (Table) RecordEventWithName ¶ added in v0.0.4
func (Table) RewriteAppend ¶
func (Table) SaveBack ¶ added in v0.0.8
func (Table) SelectJoinAuth ¶ added in v0.0.4
func (Table) SelectJoinCity ¶
func (Table) SelectJoinRecent ¶ added in v0.0.8
func (Table) SelectJoinService ¶ added in v0.0.8
func (Table) SelectJoinUser ¶
func (Table) SendMessage ¶ added in v0.0.4
func (Table) SendTemplate ¶
func (Table) ServiceList ¶ added in v0.0.8
func (Table) SettingCmdy ¶ added in v0.0.10
func (Table) SpaceCmd ¶ added in v0.0.4
func (Table) SpaceCmdy ¶ added in v0.0.10
func (Table) SpaceOpsCmd ¶ added in v0.0.10
func (Table) SpaceOpsCmdy ¶ added in v0.0.10
func (Table) TransValue ¶
func (Table) UpdateField ¶ added in v0.0.8
func (Table) UploadCreate ¶ added in v0.0.8
func (Table) UploadUpdate ¶ added in v0.0.8
func (Table) UserPlaceInit ¶ added in v0.0.4
func (Table) ValueCreate ¶ added in v0.0.6
func (Table) ValueList ¶ added in v0.0.6
func (Table) ValueModel ¶ added in v0.0.6
func (Table) ValueModify ¶ added in v0.0.6
type Tables ¶
type Tables struct{ Table }
func NewTables ¶
func NewTables(userPlace UserPlacer, place Placer, street Container) Tables
type UserPlaceRole ¶
type UserPlaceRole int
const ( UserPlaceVisitor UserPlaceRole = iota UserPlaceCreator UserPlaceLandlord UserPlaceTenant UserPlaceAdmin )
func (UserPlaceRole) String ¶
func (s UserPlaceRole) String() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.