gonganxitong

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2024 License: MIT Imports: 16 Imported by: 4

Documentation

Index

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

func PortalCmd

func PortalCmd(portal ice.Any)

Types

type ApplyStatus

type ApplyStatus int
const (
	ApplyCreate ApplyStatus = iota
	ApplyCancel
	ApplySubmit
	ApplyRejected
	ApplyApproved
)

func (ApplyStatus) String

func (s ApplyStatus) String() string

type Container

type Container interface {
	FindOrCreateByName(m *ice.Message, arg ...string)
}

type OrderStatus

type OrderStatus int
const (
	OrderCreate OrderStatus = iota
	OrderRejected
	OrderApproved
)

func (OrderStatus) String

func (s OrderStatus) String() string

type PlaceType

type PlaceType int
const (
	PlaceHouse PlaceType = iota
	PlaceHotel
	PlaceStore
	PlaceSchool
	PlaceOffice
	PlacePublic
	PlaceFactory
	PlaceHospital
)

func (PlaceType) String

func (s PlaceType) String() string

type Placer

type Placer interface {
	Inputs(m *ice.Message, arg ...string)
	Select(m *ice.Message, arg ...string) *ice.Message
	RewriteAppend(m *ice.Message, arg ...string) *ice.Message
	TransValue(m *ice.Message, key string, arg ...string) string
	TransRole(m *ice.Message, arg ...string) string
}

type Portal

type Portal struct {
	ice.Hash
	Table
	// contains filtered or unexported fields
}

func NewPortal

func NewPortal(userPlace UserPlacer, place Placer, street Container) Portal

func (Portal) AfterMigrate

func (s Portal) AfterMigrate(m *ice.Message, arg ...string)

func (Portal) BeforeMigrate

func (s Portal) BeforeMigrate(m *ice.Message, arg ...string)

func (Portal) Create

func (s Portal) Create(m *ice.Message, arg ...string)

func (Portal) Exit

func (s Portal) Exit(m *ice.Message, arg ...string)

func (Portal) Init

func (s Portal) Init(m *ice.Message, arg ...string)

func (Portal) Inputs

func (s Portal) Inputs(m *ice.Message, arg ...string)
func (s Portal) Link(m *ice.Message, arg ...string) string

func (Portal) List

func (s Portal) List(m *ice.Message, arg ...string)

func (Portal) PlaceCreate

func (s Portal) PlaceCreate(m *ice.Message, arg ...string)

func (Portal) PlaceRemove

func (s Portal) PlaceRemove(m *ice.Message, arg ...string)

func (Portal) ScanQRCode

func (s Portal) ScanQRCode(m *ice.Message, arg ...string)

func (Portal) SetIcons

func (s Portal) SetIcons(m *ice.Message, arg ...string)

func (Portal) Show

func (s Portal) Show(m *ice.Message, arg ...string)

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) AfterMigrate

func (s Table) AfterMigrate(m *ice.Message, arg ...string)

func (Table) ChangeStatus

func (s Table) ChangeStatus(m *ice.Message, uid string, from, to int, arg ...string) *ice.Message

func (Table) Display

func (s Table) Display(m *ice.Message, file string) *ice.Message

func (Table) Exit

func (s Table) Exit(m *ice.Message, arg ...string)

func (Table) Init

func (s Table) Init(m *ice.Message, arg ...string)

func (Table) Inputs

func (s Table) Inputs(m *ice.Message, arg ...string)
func (s Table) Link(m *ice.Message, arg ...string) string

func (Table) List

func (s Table) List(m *ice.Message, arg ...string) *ice.Message

func (Table) RecordEvent

func (s Table) RecordEvent(m *ice.Message, uid, info string, arg ...string)

func (Table) RenameAppend

func (s Table) RenameAppend(m *ice.Message, arg ...string) Table

func (Table) RewriteAppend

func (s Table) RewriteAppend(m *ice.Message, arg ...string) *ice.Message

func (Table) Select

func (s Table) Select(m *ice.Message, arg ...string) *ice.Message

func (Table) SelectDetail

func (s Table) SelectDetail(m *ice.Message, arg ...string) *ice.Message

func (Table) SelectJoinCity

func (s Table) SelectJoinCity(m *ice.Message) *ice.Message

func (Table) SelectJoinUser

func (s Table) SelectJoinUser(m *ice.Message) *ice.Message

func (Table) SendTemplate

func (s Table) SendTemplate(m *ice.Message, from, user_uid, title string, arg ...string)

func (Table) TablesWithRole

func (s Table) TablesWithRole(m *ice.Message, arg []string, userPlace UserPlacer, place Placer, target Placer, fields ...ice.Any) *ice.Message

func (Table) TransRole

func (s Table) TransRole(m *ice.Message, arg ...string) string

func (Table) TransValue

func (s Table) TransValue(m *ice.Message, key string, arg ...string) string

func (Table) Update

func (s Table) Update(m *ice.Message, data ice.Map, arg ...string)

type Tables

type Tables struct {
	Table
	// contains filtered or unexported fields
}

func NewTables

func NewTables(userPlace UserPlacer, place Placer, street Container) Tables

func (Tables) BeforeMigrate

func (s Tables) BeforeMigrate(m *ice.Message, arg ...string)

type UserPlaceRole

type UserPlaceRole int
const (
	UserPlaceCreator UserPlaceRole = iota
	UserPlaceVisitor
	UserPlaceLandlord
	UserPlaceTenant
	UserPlaceAdmin
)

func (UserPlaceRole) String

func (s UserPlaceRole) String() string

type UserPlacer

type UserPlacer interface {
	Placer
	User(m *ice.Message, arg ...string)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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