|
@@ -121,6 +121,20 @@ public class FamilyMemberController extends AppBaseController {
|
|
|
return memberService.delToTree(memberId,familyId);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 新增家族成员
|
|
|
+ */
|
|
|
+ @ApiOperation("新增家族成员")
|
|
|
+ @PostMapping("/add")
|
|
|
+ public AjaxResult add(@RequestBody AppMemberVo memberVo) {
|
|
|
+ if (org.apache.commons.lang3.StringUtils.isBlank(memberVo.getMobile())){
|
|
|
+ return AjaxResult.error("手机号不能为空");
|
|
|
+ }
|
|
|
+ // 后台添加,状态直接为通过 2
|
|
|
+ memberVo.setStatus("2");
|
|
|
+ return toAjax(memberService.saveOrUpdate(memberVo) ? 1 : 0);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation("编辑成员")
|
|
|
@PostMapping("/edit")
|
|
|
public AjaxResult edit(@RequestBody AppMemberVo member) {
|