package
1.2.6
Repository: https://github.com/ftchinese/ftacademy.git
Documentation: pkg.go.dev

# Functions

GrantLicence grants a licence to an assignee.
No description provided by the author
No description provided by the author
ParseInvitationStatus creates OrderKind from a string.
ParseLicenceStatus creates OrderKind from a string.
No description provided by the author
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
StmtCountLicence is used to support pagination.
No description provided by the author
No description provided by the author
StmtInvitationByToken retrieves an expanded invitation by the token sent in an email.
No description provided by the author
StmtListInvitation shows a list of invitations with its assignee attached.
No description provided by the author
StmtLockInvitation locks and retrieves a row of invitation upon revoking.
StmtLockLicence locks a row from licence table when admin updates it.
StmtLockLicenceCMS locks a row in licence when updating it from CMS.
No description provided by the author
StmtUpdateLicenceStatus after a licence is granted or revoked.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Assignee represents a reader who can accept an invitation email, and who can be granted a licence.
AssigneeJSON is used to save Assignee as JSON value.
ExpandedLicence contains data of a licence row joined with user info.
No description provided by the author
GrantResult contains all data generated after grating a licence to a user.
Invitation is an email sent to team member to accept a licence.
InvitationJSON is used to implement sql Valuer interface.
InvitationList is used for restful output.
No description provided by the author
InvitationVerified is returned after an invitation link is clicked and the corresponding ExpandedLicence is found.
Licence represents a row in the licence table.
No description provided by the author
MemberModified contains the data related to modification of membership.
No description provided by the author
No description provided by the author
Staffer is a member belong to a team under admin's management.
StaffList contains a list of assignee rows and the total number of rows for current team.
Versioned takes a snapshot after a licence is created/renewed/granted/revoked.

# Type aliases

InvitationStatus is an enumeration of invitation current phase.
No description provided by the author
No description provided by the author