🎨 免费提供一个月的订阅试用 https://github.com/siyuan-note/siyuan/issues/4186

This commit is contained in:
Liang Ding 2022-06-02 10:05:47 +08:00
parent 7fb62cea90
commit 206200cc58
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
3 changed files with 30 additions and 0 deletions

View file

@ -25,6 +25,18 @@ import (
"github.com/siyuan-note/siyuan/kernel/util"
)
func startFreeTrial(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
err := model.StartFreeTrial()
if nil != err {
ret.Code = -1
ret.Msg = err.Error()
return
}
}
func useActivationcode(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)