2454
This commit is contained in:
parent
e340813938
commit
1d46f6a9a2
@ -36,10 +36,12 @@ service main {
|
|||||||
@handler wxMiniAuth
|
@handler wxMiniAuth
|
||||||
post /user/wxMiniAuth (WXMiniAuthReq) returns (WXMiniAuthResp)
|
post /user/wxMiniAuth (WXMiniAuthReq) returns (WXMiniAuthResp)
|
||||||
|
|
||||||
|
|
||||||
@doc "wechat h5 auth"
|
@doc "wechat h5 auth"
|
||||||
@handler wxH5Auth
|
@handler wxH5Auth
|
||||||
post /user/wxh5Auth (WXH5AuthReq) returns (WXH5AuthResp)
|
post /user/wxh5Auth (WXH5AuthReq) returns (WXH5AuthResp)
|
||||||
|
|
||||||
|
@handler DecryptMobile
|
||||||
|
post /user/decryptMobile
|
||||||
}
|
}
|
||||||
|
|
||||||
//need login
|
//need login
|
||||||
|
@ -60,4 +60,4 @@ Applepay:
|
|||||||
Ali:
|
Ali:
|
||||||
Code: "d55b58829efb41c8aa8e86769cba4844"
|
Code: "d55b58829efb41c8aa8e86769cba4844"
|
||||||
SystemConfig:
|
SystemConfig:
|
||||||
ThreeVerify: true
|
ThreeVerify: false
|
||||||
|
@ -209,6 +209,11 @@ func RegisterHandlers(server *rest.Server, serverCtx *svc.ServiceContext) {
|
|||||||
|
|
||||||
server.AddRoutes(
|
server.AddRoutes(
|
||||||
[]rest.Route{
|
[]rest.Route{
|
||||||
|
{
|
||||||
|
Method: http.MethodPost,
|
||||||
|
Path: "/user/decryptMobile",
|
||||||
|
Handler: user.DecryptMobileHandler(serverCtx),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
// mobile code login
|
// mobile code login
|
||||||
Method: http.MethodPost,
|
Method: http.MethodPost,
|
||||||
|
@ -0,0 +1,16 @@
|
|||||||
|
package user
|
||||||
|
|
||||||
|
import (
|
||||||
|
"net/http"
|
||||||
|
"qnc-server/app/user/cmd/api/internal/logic/user"
|
||||||
|
"qnc-server/app/user/cmd/api/internal/svc"
|
||||||
|
"qnc-server/common/result"
|
||||||
|
)
|
||||||
|
|
||||||
|
func DecryptMobileHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||||
|
return func(w http.ResponseWriter, r *http.Request) {
|
||||||
|
l := user.NewDecryptMobileLogic(r.Context(), svcCtx)
|
||||||
|
err := l.DecryptMobile()
|
||||||
|
result.HttpResult(r, w, nil, err)
|
||||||
|
}
|
||||||
|
}
|
28
app/user/cmd/api/internal/logic/user/decryptmobilelogic.go
Normal file
28
app/user/cmd/api/internal/logic/user/decryptmobilelogic.go
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
package user
|
||||||
|
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
|
||||||
|
"github.com/zeromicro/go-zero/core/logx"
|
||||||
|
"qnc-server/app/user/cmd/api/internal/svc"
|
||||||
|
)
|
||||||
|
|
||||||
|
type DecryptMobileLogic struct {
|
||||||
|
logx.Logger
|
||||||
|
ctx context.Context
|
||||||
|
svcCtx *svc.ServiceContext
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewDecryptMobileLogic(ctx context.Context, svcCtx *svc.ServiceContext) *DecryptMobileLogic {
|
||||||
|
return &DecryptMobileLogic{
|
||||||
|
Logger: logx.WithContext(ctx),
|
||||||
|
ctx: ctx,
|
||||||
|
svcCtx: svcCtx,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
func (l *DecryptMobileLogic) DecryptMobile() error {
|
||||||
|
// todo: add your logic here and delete this line
|
||||||
|
|
||||||
|
return nil
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user