gonganxitong

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: MIT Imports: 24 Imported by: 5

Documentation

Index

Constants

View Source
const (
	SETTING_RADIO   = "radio"
	SETTING_PROFILE = "profile"
)

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 DocumentVendor interface {
	Folder(m *ice.Message, arg ...string) *ice.Message
}
View Source
var MeetingVendor interface {
	UserList(m *ice.Message, arg ...string) *ice.Message
	MeetingList(m *ice.Message, arg ...string) *ice.Message
	MeetingPost(m *ice.Message, arg ...string) *ice.Message
	MeetingPut(m *ice.Message, arg ...string) *ice.Message
	MeetingCancel(m *ice.Message, arg ...string) *ice.Message
}
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 PaymentStatusList = map[PaymentStatus]string{
	PaymentCreate:  "create",
	PaymentSuccess: "success",
	PaymentFailure: "failure",
}
View Source
var PaymentVendor interface {
	Request(m *ice.Message, arg ...string)
	Response(m *ice.Message, arg ...string)
}
View Source
var PhotoVendor interface {
	Folder(m *ice.Message, arg ...string)
	Upload(m *ice.Message, arg ...string)
	Rename(m *ice.Message, arg ...string)
	Trash(m *ice.Message, arg ...string)
	Token(m *ice.Message, arg ...string)
}
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

func CommandUID added in v0.0.8

func CommandUID(m *ice.Message, cmd string) string

func PortalCmd

func PortalCmd(portal ice.Any)

func ServiceUID added in v0.0.8

func ServiceUID(m *ice.Message) string

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 Container

type Container interface {
	Keys(target ice.Any, k string) string
	FindOrCreateByName(m *ice.Message, arg ...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 PaymentStatus added in v0.0.14

type PaymentStatus int
const (
	PaymentCreate PaymentStatus = iota
	PaymentSuccess
	PaymentFailure
)

func (PaymentStatus) String added in v0.0.14

func (s PaymentStatus) String() string

type PlaceType

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

func (PlaceType) String

func (s PlaceType) String() string

type Placer

type Placer interface {
	Keys(target ice.Any, k string) string
	Inputs(m *ice.Message, arg ...string)
	RewriteAppend(m *ice.Message, arg ...string) *ice.Message
	TransValue(m *ice.Message, key string, 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) AddRecent added in v0.0.4

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

func (Portal) AfterMigrate

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

func (Portal) AfterPlaceAuth added in v0.0.6

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

func (Portal) AfterPlaceCreate added in v0.0.6

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

func (Portal) AfterPlaceRemove added in v0.0.6

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

func (Portal) AfterPlaceTrash added in v0.0.16

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

func (Portal) BeforeMigrate

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

func (Portal) BeforePlaceAuth added in v0.0.6

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

func (Portal) BeforePlaceCreate added in v0.0.6

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

func (Portal) BeforePlaceRemove added in v0.0.6

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

func (Portal) BeforePlaceTrash added in v0.0.16

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

func (Portal) Command added in v0.0.6

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

func (Portal) CommandSelect added in v0.0.8

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

func (Portal) CommandUpdate added in v0.0.8

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

func (Portal) Create

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

func (Portal) DashboardCreate added in v0.0.6

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

func (Portal) DashboardInsert added in v0.0.6

func (s Portal) DashboardInsert(m *ice.Message, score int, title, unit string, index ice.Any, field string, arg ...ice.Any)

func (Portal) DashboardUpdate added in v0.0.6

func (s Portal) DashboardUpdate(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) *ice.Message

func (Portal) List

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

func (Portal) MarketInsert added in v0.0.6

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

func (Portal) Modify added in v0.0.6

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

func (Portal) PlaceAuth added in v0.0.4

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

func (Portal) PlaceCheck added in v0.0.14

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

func (Portal) PlaceCmd added in v0.0.4

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

func (Portal) PlaceCreate

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

func (Portal) PlaceList added in v0.0.4

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

func (Portal) PlaceListOption added in v0.0.4

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

func (Portal) PlaceRemove

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

func (Portal) PlaceTrash added in v0.0.14

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

func (Portal) RecordEvent added in v0.0.4

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

func (Portal) Remove added in v0.0.6

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

func (Portal) Run added in v0.0.4

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

func (Portal) SendTemplate added in v0.0.4

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

func (Portal) Show

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

func (Portal) StorageCreate added in v0.0.6

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

func (Portal) StorageInsert added in v0.0.6

func (s Portal) StorageInsert(m *ice.Message, title, content string)

func (Portal) UserPlaceCmd added in v0.0.4

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

func (Portal) UserPlaceRole added in v0.0.4

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

func (Portal) ValueCreate added in v0.0.6

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

func (Portal) ValueList added in v0.0.6

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

func (Portal) ValueModify added in v0.0.6

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

func (Portal) ValueRemove added in v0.0.6

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

type Table

type Table struct {
	db.Table
	UserPlace  UserPlacer
	Place      Placer
	Street     Container
	STREET_UID string
	PLACE_UID  string
	// contains filtered or unexported fields
}

func NewTable

func NewTable(userPlace UserPlacer, place Placer, street Container) Table

func (Table) AfterInit added in v0.0.12

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

func (Table) AfterMigrate

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

func (Table) AuthCreate added in v0.0.8

func (s Table) AuthCreate(m *ice.Message, authType int, fromUID string, arg ...string)

func (Table) AutoCmd added in v0.0.8

func (s Table) AutoCmd(m *ice.Message, arg ...ice.Any) *ice.Message

func (Table) AutoCmdy added in v0.0.8

func (s Table) AutoCmdy(m *ice.Message, arg ...ice.Any) *ice.Message

func (Table) BeforeAction added in v0.0.10

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

func (Table) Button added in v0.0.6

func (s Table) Button(m *ice.Message, info string, arg ...ice.Any) *ice.Message

func (Table) ChangeStatus

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

func (Table) CheckRole added in v0.0.4

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

func (Table) CityCmd added in v0.0.10

func (s Table) CityCmd(m *ice.Message, arg ...ice.Any) *ice.Message

func (Table) CityList added in v0.0.8

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

func (Table) Create added in v0.0.4

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

func (Table) CreditCmdy added in v0.0.10

func (s Table) CreditCmdy(m *ice.Message, arg ...ice.Any) *ice.Message

func (Table) DashboardUpdate added in v0.0.6

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

func (Table) Display

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

func (Table) DisplayBase added in v0.0.4

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

func (Table) DoneMessage added in v0.0.4

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

func (Table) EchoQRCode added in v0.0.10

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

func (Table) FieldsDefault added in v0.0.6

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

func (Table) GetCommandUID added in v0.0.6

func (s Table) GetCommandUID(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 (Table) InputsList added in v0.0.4

func (s Table) InputsList(m *ice.Message, list ice.Any, arg ...string)

func (Table) InputsListRole added in v0.0.4

func (s Table) InputsListRole(m *ice.Message, list ice.Any, arg ...string)

func (Table) InputsListSkip added in v0.0.8

func (s Table) InputsListSkip(m *ice.Message, list ice.Any, skip string, arg ...string)

func (Table) InputsListValue added in v0.0.4

func (s Table) InputsListValue(m *ice.Message, list ice.Any, key string) string

func (Table) InsertOrUpdate added in v0.0.14

func (s Table) InsertOrUpdate(m *ice.Message, arg []string, args ...string)

func (Table) IsLeader added in v0.0.6

func (s Table) IsLeader(m *ice.Message) bool

func (Table) IsVisitor added in v0.0.6

func (s Table) IsVisitor(m *ice.Message) bool

func (Table) IsWorker added in v0.0.8

func (s Table) IsWorker(m *ice.Message) bool

func (Table) LeftJoinValue added in v0.0.8

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 (Table) List

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

func (Table) LoadTrans added in v0.0.6

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

func (Table) MarketInsert added in v0.0.6

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

func (Table) MemberList added in v0.0.8

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

func (Table) Modify added in v0.0.6

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

func (Table) NoticeList added in v0.0.8

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

func (Table) PlaceIsAuthed added in v0.0.14

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

func (Table) PlaceTrash added in v0.0.14

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

func (Table) Prefix added in v0.0.4

func (s Table) Prefix(m *ice.Message, target ice.Any) string

func (Table) PrefixPortal added in v0.0.4

func (s Table) PrefixPortal(m *ice.Message) string

func (Table) ProcessPodCmd added in v0.0.6

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

func (Table) RecordEvent

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

func (Table) RecordEventWithName added in v0.0.4

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

func (Table) Remove added in v0.0.6

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

func (Table) RewriteAppend

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

func (Table) SaveBack added in v0.0.8

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

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) SelectJoinAuth added in v0.0.4

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

func (Table) SelectJoinCity

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

func (Table) SelectJoinRecent added in v0.0.8

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

func (Table) SelectJoinService added in v0.0.8

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

func (Table) SelectJoinUser

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

func (Table) SendMessage added in v0.0.4

func (s Table) SendMessage(m *ice.Message, from, to string, arg ...string)

func (Table) SendTemplate

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

func (Table) ServiceList added in v0.0.8

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

func (Table) SettingCmdy added in v0.0.10

func (s Table) SettingCmdy(m *ice.Message, arg ...ice.Any) *ice.Message

func (Table) SpaceCmd added in v0.0.4

func (s Table) SpaceCmd(m *ice.Message, space string, arg ...ice.Any) *ice.Message

func (Table) SpaceCmdy added in v0.0.10

func (s Table) SpaceCmdy(m *ice.Message, space string, arg ...ice.Any) *ice.Message

func (Table) SpaceOpsCmd added in v0.0.10

func (s Table) SpaceOpsCmd(m *ice.Message, arg ...ice.Any) *ice.Message

func (Table) SpaceOpsCmdy added in v0.0.10

func (s Table) SpaceOpsCmdy(m *ice.Message, arg ...ice.Any) *ice.Message

func (Table) SpendlistCheck added in v0.0.14

func (s Table) SpendlistCheck(m *ice.Message, size int) bool

func (Table) SpendlistCount added in v0.0.14

func (s Table) SpendlistCount(m *ice.Message, size int)

func (Table) SpendlistUpdate added in v0.0.14

func (s Table) SpendlistUpdate(m *ice.Message, size string)

func (Table) SpideCreate added in v0.0.14

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

func (Table) StreetAuthUID added in v0.0.14

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

func (Table) TransPrice added in v0.0.14

func (s Table) TransPrice(m *ice.Message, arg []string, field ...string) []string

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.Any, arg ...string)

func (Table) UpdateAuth added in v0.0.4

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

func (Table) UpdateField added in v0.0.8

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

func (Table) UploadCreate added in v0.0.8

func (s Table) UploadCreate(m *ice.Message, field, uid string, arg ...string) string

func (Table) UploadUpdate added in v0.0.8

func (s Table) UploadUpdate(m *ice.Message, field, uid string, arg ...string)

func (Table) UserPlaceInit added in v0.0.4

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

func (Table) UserPlaceRole added in v0.0.4

func (s Table) UserPlaceRole(m *ice.Message) int

func (Table) ValueCreate added in v0.0.6

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

func (Table) ValueList added in v0.0.6

func (s Table) ValueList(m *ice.Message, arg []string, fields ...ice.Any) *ice.Message

func (Table) ValueModel added in v0.0.6

func (s Table) ValueModel(m *ice.Message, action ice.Any, arg ...string) *ice.Message

func (Table) ValueModify added in v0.0.6

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

func (Table) ValueRemove added in v0.0.6

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

type Tables

type Tables struct{ Table }

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 (
	UserPlaceVisitor UserPlaceRole = iota
	UserPlaceCreator
	UserPlaceLandlord
	UserPlaceTenant
	UserPlaceAdmin
)

func (UserPlaceRole) String

func (s UserPlaceRole) String() string

type UserPlacer

type UserPlacer interface {
	Placer
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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