|
|
@@ -5,6 +5,7 @@ import java.io.FileInputStream;
|
|
|
import java.io.IOException;
|
|
|
import java.io.InputStream;
|
|
|
import java.io.OutputStream;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.UUID;
|
|
|
|
|
|
@@ -35,6 +36,7 @@ import com.goafanti.common.model.User;
|
|
|
import com.goafanti.common.service.DistrictGlossoryService;
|
|
|
import com.goafanti.common.service.FieldGlossoryService;
|
|
|
import com.goafanti.common.service.IndustryCategoryService;
|
|
|
+import com.goafanti.common.utils.InvitationCodeUtils;
|
|
|
import com.goafanti.common.utils.LoggerUtils;
|
|
|
import com.goafanti.common.utils.MobileMessageUtils;
|
|
|
import com.goafanti.common.utils.PasswordUtil;
|
|
|
@@ -769,5 +771,11 @@ public class PublicController extends BaseController {
|
|
|
res.setData(pagination);
|
|
|
return res;
|
|
|
}
|
|
|
-
|
|
|
+ @RequestMapping(value = "/InvitationCode", method = RequestMethod.GET)
|
|
|
+ @ResponseBody
|
|
|
+ public Result InvitationCode() {
|
|
|
+ Result res = new Result();
|
|
|
+ res.data(InvitationCodeUtils.toSerialCode(new Date().getTime()));
|
|
|
+ return res;
|
|
|
+ }
|
|
|
}
|