define(["emberdata","app","bhyfserializer","ajax"],function(a,b,c,d){var e=a.attr;return b.User=a.Model.extend({Role:e("string"),ChineseName:e("string"),EnglishName:e("string"),ClassName:e("string"),GardenName:e("string"),Logo:e("string"),ClassID:e("string"),GardenID:e("string")}),b.User.reopen({login2:function(a){return d.send({method:"login2",type:"GET",data:a})}}),b.User.reopenClass({methods:{find:{map:"BBC.User.GetUserBaseInfo"}},login:function(a,b){return d.send({method:"BBC.User.CheckLogin",type:"GET",data:{Uname:a,Pass:b}})}}),b.UserSerializer=c.extend({primaryKey:"PersonID"}),b.User});