ziwen 2 years ago
parent
commit
e7b484edda
2 changed files with 2 additions and 1 deletions
  1. 1 1
      controller/pc/pc.go
  2. 1 0
      routers/pc.go

+ 1 - 1
controller/pc/pc.go

@@ -887,7 +887,7 @@ func GetSmsCode(c *gin.Context) {
 // @Product json
 // @Success 200 {string} string 获取验证码成功
 // @Failure 400 {string} string 请输入邮箱地址
-// @Router /user/get_email_code [get]
+// @Router /pc_code/get_email_code [get]
 func GetEmailCode(c *gin.Context) {
 	email := c.DefaultQuery("email", "")
 	if email == "" {

+ 1 - 0
routers/pc.go

@@ -21,4 +21,5 @@ func InitPc(r *gin.Engine)  {
 	pcGroup.GET("/login", pc.WechatLogin)
 	pcGroup.GET("/get_sms_code", pc.GetSmsCode)
 	pcGroup.GET("/get_email_code", pc.GetEmailCode)
+	rGroup.POST("/pcLogin", pc.PcLogin)
 }