mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-02-02 18:28:41 +08:00
commit
401fa538a8
@ -42,7 +42,7 @@ func (c *cEms) SendTest(ctx context.Context, req *common.SendTestEmailReq) (res
|
|||||||
}
|
}
|
||||||
|
|
||||||
// SendBindEms 发送换绑邮件
|
// SendBindEms 发送换绑邮件
|
||||||
func (c *cSms) SendBindEms(ctx context.Context, _ *common.SendBindEmsReq) (res *common.SendBindEmsRes, err error) {
|
func (c *cEms) SendBindEms(ctx context.Context, _ *common.SendBindEmsReq) (res *common.SendBindEmsRes, err error) {
|
||||||
var (
|
var (
|
||||||
memberId = contexts.GetUserId(ctx)
|
memberId = contexts.GetUserId(ctx)
|
||||||
models *entity.AdminMember
|
models *entity.AdminMember
|
||||||
|
@ -46,6 +46,7 @@ func (l *gCurd) generateWebModelState(ctx context.Context, in *CurdPreviewInput)
|
|||||||
}
|
}
|
||||||
buffer.WriteString(fmt.Sprintf(" public %s = %v; // %s\n", field.TsName, value, field.Dc))
|
buffer.WriteString(fmt.Sprintf(" public %s = %v; // %s\n", field.TsName, value, field.Dc))
|
||||||
}
|
}
|
||||||
|
buffer.WriteString("\n constructor(state?: Partial<State>) {\n if (state) {\n Object.assign(this, state);\n }\n }")
|
||||||
buffer.WriteString("}")
|
buffer.WriteString("}")
|
||||||
return buffer.String()
|
return buffer.String()
|
||||||
}
|
}
|
||||||
|
@ -28,6 +28,10 @@ func (c *c@{.varName}) List(ctx context.Context, req *@{.varName | ToLower}.List
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if list == nil {
|
||||||
|
list = []*@{.templateGroup}in.@{.varName}ListModel{}
|
||||||
|
}
|
||||||
|
|
||||||
res = new(@{.varName | ToLower}.ListRes)
|
res = new(@{.varName | ToLower}.ListRes)
|
||||||
res.List = list
|
res.List = list
|
||||||
res.PageRes.Pack(req, totalCount)
|
res.PageRes.Pack(req, totalCount)
|
||||||
|
Loading…
Reference in New Issue
Block a user