You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
988 B
25 lines
988 B
package influencer
|
|
|
|
import (
|
|
"pure/api/influencer"
|
|
"pure/api/sys"
|
|
|
|
"github.com/gin-gonic/gin"
|
|
)
|
|
|
|
func InitInfluencerOtherRouter(Router *gin.RouterGroup) {
|
|
WithoutLoginRouter := Router.Group("")
|
|
WithoutLoginRouter.GET("mission/recommend-list", influencer.GetRecommendMissionList) //首页推荐任务列表
|
|
|
|
InOtherRouter := Router.Group("base")
|
|
{
|
|
InOtherRouter.POST("login", influencer.LoginInfluencer) //登录
|
|
InOtherRouter.POST("register", influencer.Register) //注册
|
|
InOtherRouter.POST("sendMessage", influencer.SendMessage) //发送短信验证码
|
|
InOtherRouter.POST("sendEmail", influencer.SendEmail) //发送邮箱验证码
|
|
InOtherRouter.POST("authorized", influencer.Authorized) //授权登录
|
|
InOtherRouter.GET("brochure", sys.GetSysBrochure) //隐私协议单页
|
|
InOtherRouter.GET("chain", influencer.GetChainInfo) // 获取区块链信息
|
|
InOtherRouter.GET("version", sys.GetVersion) // 获取版本信息
|
|
}
|
|
}
|
|
|