Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeActivityNone = iota TypeActivityProtected // 全局不公开活动 TypeActivityPublic // 全局公开活动 TypeActivityGroup // 群组活动 )
View Source
const ( StatusActivityNone = iota StatusActivityDoing StatusActivityDone StatusActivityEnd )
View Source
const ( KindActivityNone = iota KindActivityDate // 约饭 KindActivityBadminton // 羽毛球 )
View Source
const ( FeeTypeActivityNone = iota FeeTypeActivityFree // 免费 FeeTypeActivityBefore // 活动前结算 FeeTypeActivityAA // 全部分摊 FeeTypeActivityAB // 男固定,女平摊 FeeTypeActivityBA // 男平摊,女固定 )
View Source
const ( Success = 0 SucGroupApply = 200 SucGroupApprove = 201 SucGroupRefuse = 202 SucGroupUpdateName = 203 SucGroupUpdateNotice = 204 SucGroupUpdateAddr = 205 SucGroupQuit = 206 SucGroupRemove = 207 SucGroupFire = 208 SucGroupTransfer = 209 SucGroupPromote = 210 SucGroupCancel = 211 ErrParam = 10000 ErrData = 10001 ErrOp = 10002 ErrTwoPasswordNotMatch = 10003 ErrUserAuth = 10100 ErrUserRegister = 10101 ErrUserData = 10102 ErrUserUpdateData = 10103 ErrUserNotFound = 10104 ErrUserEmailFormat = 10105 ErrGroupManagerLimit = 10200 ErrGroupGetData = 10201 ErrGroupApprove = 10202 ErrGroupUpdateOp = 10203 ErrGroupNonManager = 10204 ErrGroupNonOwner = 10205 ErrGroupPromote = 10206 ErrGroupRemove = 10207 ErrGroupTransfer = 10208 ErrGroupNonMember = 10209 ErrGroupNotFound = 10210 ErrGroupApplicationListNotFound = 10211 ErrGroupApplyTwice = 10212 ErrGroupApply = 10213 ErrGroupRefuse = 10214 ErrGroupUpdateName = 10215 ErrGroupUpdateNotice = 10216 ErrGroupUpdateAddr = 10217 ErrGroupQuit = 10218 ErrGroupFire = 10219 ErrGroupCancel = 10220 ErrActivityGetData = 10300 ErrActivityCannotApplyNotInGroup = 10301 ErrActivityUpdate = 10302 ErrActivityNonPlanner = 10303 ErrActivityCreate = 10304 ErrActivityFee = 10305 ErrActivityOverQuota = 10306 ErrActivityNotEnough = 10307 ErrActivityRemove = 10308 ErrActivityNotDoing = 10309 ErrActivityCannotCancel = 10310 ErrActivityHasBegun = 10311 ErrActivityNotFound = 10312 ErrActivityApply = 10313 )
View Source
const ( ErrorTextGroupNotFound = "群组不存在" ErrorTextGroupFireMember = "只有群管理才能踢人出群" ErrorTextGroupRemove = "只有群主才能删除群组" ErrorTextGroupPromote = "只有群主才能提升管理员" ErrorTextGroupTransfer = "只有群主才能转让群主职位" ErrorTextGroupAlreadyManager = "已经时管理员,不需要再提升" ErrorTextGroupOwnerCannotQuit = "群主不能退群,请先转让群主后再退群" ErrorTextGroupManagerFull = "群管理员名额已满" ErrorTextGroupMemberFull = "群成员名额已满" ErrorTextGroupNameExists = "群的名字已经存在" ErrorTextGroupManagerOp = "只有群管理员才能操作" ErrorTextActivityNotFound = "活动不存在" )
View Source
const ( PositionGroupMember = iota // normal member PositionGroupOwner // owner PositionGroupManager // manager PositionGroupPlaceholder1 // holder PositionGroupPlaceholder2 // holder PositionGroupPlaceholder3 // holder )
View Source
const ( TypeGenderUnspecified = iota // 未指定 TypeGenderMale // 男 TypeGenderFemale // 女 )
View Source
const ActivityOverFlow = 20
候补列表不能超过固定数量
View Source
const DefaultActivityCount = 20
DefaultActivityCount 默认返回给客户端活动的一页数量
View Source
const DefaultGroupCount = 20
DefaultGroupCount 默认返回给客户端群组的一页数量
View Source
const DefaultGroupManagerCount = 2
DefaultGroupManagerCount 默认管理员的数量
View Source
const DefaultGroupMemmberCount = 40
DefaultGroupMemmberCount 默认成员数量
View Source
const (
PAGE_SIZE = 20
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.