Documentation ¶
Index ¶
- func HasPriv(priv, needpriv int) bool
- func LargePU(privilege int) bool
- func SameID(ID1, ID2 string) bool
- func ShowACFlag(flag uint8) bool
- func ShowEncrypt(num int) (encrypt string)
- func ShowErrFlag(flag uint8) bool
- func ShowJudge(num int) (judge string)
- func ShowLanguage(num int) (language string)
- func ShowPrivilege(privilege int) string
- func ShowRatio(solve int, submit int) (ratio string)
- func ShowSim(sim int) bool
- func ShowSpecial(num int) (special string)
- func ShowStatus(status int) bool
- func ShowTime(unixtime int64) string
- type Controller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ShowACFlag ¶
func ShowErrFlag ¶
Types ¶
type Controller ¶
type Controller struct { restweb.Controller Uid string Privilege int }
func (*Controller) Err400 ¶
func (ct *Controller) Err400(title string, info string)
func (*Controller) GetCodeLen ¶
func (ct *Controller) GetCodeLen(strLen int) (codeLen int)
func (*Controller) GetPage ¶
func (ct *Controller) GetPage(page int, pageCount int) (ret map[string]interface{})
func (*Controller) Init ¶
func (ct *Controller) Init()
Click to show internal directories.
Click to hide internal directories.