From 3b55d06b89bf64873e685c3d78fce5affbba3d17 Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Tue, 16 Apr 2019 11:20:38 +0900 Subject: Add warehouse server source code. [Patch Set 2] Add ReadMe.md Change-Id: I6ade52d2490f5ca4ba107c1a27ed6d5b39048725 Signed-off-by: zheng_wenlong --- .../market/persistence/mapper/app/AppMapper.java | 61 +++++++++++++++++++ .../persistence/mapper/app/AppVersionMapper.java | 51 ++++++++++++++++ .../mapper/authority/AuthorityMapper.java | 49 +++++++++++++++ .../authority/AuthorityResourceLinkMapper.java | 43 +++++++++++++ .../mapper/resource/DictionaryMapper.java | 51 ++++++++++++++++ .../mapper/resource/ResourceMapper.java | 49 +++++++++++++++ .../mapper/user/UserAuthorityLinkMapper.java | 43 +++++++++++++ .../market/persistence/mapper/user/UserMapper.java | 70 ++++++++++++++++++++++ 8 files changed, 417 insertions(+) create mode 100644 appmarket-persistence/src/main/java/app/market/persistence/mapper/app/AppMapper.java create mode 100644 appmarket-persistence/src/main/java/app/market/persistence/mapper/app/AppVersionMapper.java create mode 100644 appmarket-persistence/src/main/java/app/market/persistence/mapper/authority/AuthorityMapper.java create mode 100644 appmarket-persistence/src/main/java/app/market/persistence/mapper/authority/AuthorityResourceLinkMapper.java create mode 100644 appmarket-persistence/src/main/java/app/market/persistence/mapper/resource/DictionaryMapper.java create mode 100644 appmarket-persistence/src/main/java/app/market/persistence/mapper/resource/ResourceMapper.java create mode 100644 appmarket-persistence/src/main/java/app/market/persistence/mapper/user/UserAuthorityLinkMapper.java create mode 100644 appmarket-persistence/src/main/java/app/market/persistence/mapper/user/UserMapper.java (limited to 'appmarket-persistence/src/main/java/app/market/persistence/mapper') diff --git a/appmarket-persistence/src/main/java/app/market/persistence/mapper/app/AppMapper.java b/appmarket-persistence/src/main/java/app/market/persistence/mapper/app/AppMapper.java new file mode 100644 index 0000000..ef413a0 --- /dev/null +++ b/appmarket-persistence/src/main/java/app/market/persistence/mapper/app/AppMapper.java @@ -0,0 +1,61 @@ +/* + * Copyright (c) 2019 TOYOTA MOTOR CORPORATION + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package app.market.persistence.mapper.app; + +import java.util.List; +import app.market.model.app.App; +import app.market.model.app.AppExample; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.session.RowBounds; +import org.springframework.stereotype.Repository; + +@Repository(value = "AppMapper") +public interface AppMapper { + int countByExample(AppExample example); + + int deleteByExample(AppExample example); + + int deleteByPrimaryKey(String appId); + + int insert(App record); + + int insertSelective(App record); + + List selectByExample(AppExample example); + + List selectByExample(RowBounds rowBounds, AppExample example); + + App selectByPrimaryKey(String appId); + + App selectByCustomId(String appIdCustom); + + int updateByExampleSelective(@Param("record") App record, @Param("example") AppExample example); + + int updateByExample(@Param("record") App record, @Param("example") AppExample example); + + int updateByPrimaryKeySelective(App record); + + int updateByPrimaryKey(App record); + + int deleteByAppId(String appId); + + int SelectByCount(@Param("keyWord") String keyWord, @Param("appTypeId") String appTypeId, + @Param("deviceTypeId") String deviceTypeId, @Param("isPublic") String isPublic); + + List SelectByList(@Param("offset") int offset, @Param("limit") int limit, @Param("keyWord") String keyWord, + @Param("order") String order, @Param("sort") String sort,@Param("appTypeId") String appTypeId, + @Param("deviceTypeId") String deviceTypeId, @Param("isPublic") String isPublic); +} \ No newline at end of file diff --git a/appmarket-persistence/src/main/java/app/market/persistence/mapper/app/AppVersionMapper.java b/appmarket-persistence/src/main/java/app/market/persistence/mapper/app/AppVersionMapper.java new file mode 100644 index 0000000..822ca63 --- /dev/null +++ b/appmarket-persistence/src/main/java/app/market/persistence/mapper/app/AppVersionMapper.java @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2019 TOYOTA MOTOR CORPORATION + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package app.market.persistence.mapper.app; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; + +import app.market.model.app.AppVersion; +import app.market.model.app.AppVersionExample; + +@Repository(value = "AppVersionMapper") +public interface AppVersionMapper { + int countByExample(AppVersionExample example); + + int deleteByExample(AppVersionExample example); + + int deleteByPrimaryKey(String versionId); + + int insert(AppVersion record); + + int insertSelective(AppVersion record); + + List selectByExample(AppVersionExample example); + + AppVersion selectByPrimaryKey(String versionId); + + int updateByExampleSelective(@Param("record") AppVersion record, @Param("example") AppVersionExample example); + + int updateByExample(@Param("record") AppVersion record, @Param("example") AppVersionExample example); + + int updateByPrimaryKeySelective(AppVersion record); + + int updateByPrimaryKey(AppVersion record); + + int deleteByAppId(String appId); +} \ No newline at end of file diff --git a/appmarket-persistence/src/main/java/app/market/persistence/mapper/authority/AuthorityMapper.java b/appmarket-persistence/src/main/java/app/market/persistence/mapper/authority/AuthorityMapper.java new file mode 100644 index 0000000..a64ed59 --- /dev/null +++ b/appmarket-persistence/src/main/java/app/market/persistence/mapper/authority/AuthorityMapper.java @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2019 TOYOTA MOTOR CORPORATION + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package app.market.persistence.mapper.authority; + +import java.util.List; +import app.market.model.authority.Authority; +import app.market.model.authority.AuthorityExample; +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; + +@Repository(value = "AuthorityMapper") +public interface AuthorityMapper { + int countByExample(AuthorityExample example); + + int deleteByExample(AuthorityExample example); + + int deleteByPrimaryKey(String auId); + + int insert(Authority record); + + int insertSelective(Authority record); + + List selectByExample(AuthorityExample example); + + Authority selectByPrimaryKey(String auId); + + int updateByExampleSelective(@Param("record") Authority record, @Param("example") AuthorityExample example); + + int updateByExample(@Param("record") Authority record, @Param("example") AuthorityExample example); + + int updateByPrimaryKeySelective(Authority record); + + int updateByPrimaryKey(Authority record); + + List selectOption(); +} \ No newline at end of file diff --git a/appmarket-persistence/src/main/java/app/market/persistence/mapper/authority/AuthorityResourceLinkMapper.java b/appmarket-persistence/src/main/java/app/market/persistence/mapper/authority/AuthorityResourceLinkMapper.java new file mode 100644 index 0000000..18b4c00 --- /dev/null +++ b/appmarket-persistence/src/main/java/app/market/persistence/mapper/authority/AuthorityResourceLinkMapper.java @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2019 TOYOTA MOTOR CORPORATION + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package app.market.persistence.mapper.authority; + +import java.util.List; +import app.market.model.authority.AuthorityResourceLinkExample; +import app.market.model.authority.AuthorityResourceLinkKey; +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; + +@Repository(value = "AuthorityResourceLinkMapper") +public interface AuthorityResourceLinkMapper { + int countByExample(AuthorityResourceLinkExample example); + + int deleteByExample(AuthorityResourceLinkExample example); + + int deleteByPrimaryKey(AuthorityResourceLinkKey key); + + int insert(AuthorityResourceLinkKey record); + + int insertSelective(AuthorityResourceLinkKey record); + + List selectByExample(AuthorityResourceLinkExample example); + + int updateByExampleSelective(@Param("record") AuthorityResourceLinkKey record, + @Param("example") AuthorityResourceLinkExample example); + + int updateByExample(@Param("record") AuthorityResourceLinkKey record, + @Param("example") AuthorityResourceLinkExample example); +} \ No newline at end of file diff --git a/appmarket-persistence/src/main/java/app/market/persistence/mapper/resource/DictionaryMapper.java b/appmarket-persistence/src/main/java/app/market/persistence/mapper/resource/DictionaryMapper.java new file mode 100644 index 0000000..e5e3137 --- /dev/null +++ b/appmarket-persistence/src/main/java/app/market/persistence/mapper/resource/DictionaryMapper.java @@ -0,0 +1,51 @@ +/* + * Copyright (c) 2019 TOYOTA MOTOR CORPORATION + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package app.market.persistence.mapper.resource; + +import java.util.List; + +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; + +import app.market.model.resource.Dictionary; +import app.market.model.resource.DictionaryExample; + +@Repository(value = "DictionaryMapper") +public interface DictionaryMapper { + int countByExample(DictionaryExample example); + + int deleteByExample(DictionaryExample example); + + int deleteByPrimaryKey(Integer dicId); + + int insert(Dictionary record); + + int insertSelective(Dictionary record); + + List selectByExample(DictionaryExample example); + + Dictionary selectByPrimaryKey(Integer dicId); + + int updateByExampleSelective(@Param("record") Dictionary record, @Param("example") DictionaryExample example); + + int updateByExample(@Param("record") Dictionary record, @Param("example") DictionaryExample example); + + int updateByPrimaryKeySelective(Dictionary record); + + int updateByPrimaryKey(Dictionary record); + + List selectItemsByTypeId(String typeId); +} \ No newline at end of file diff --git a/appmarket-persistence/src/main/java/app/market/persistence/mapper/resource/ResourceMapper.java b/appmarket-persistence/src/main/java/app/market/persistence/mapper/resource/ResourceMapper.java new file mode 100644 index 0000000..54aed67 --- /dev/null +++ b/appmarket-persistence/src/main/java/app/market/persistence/mapper/resource/ResourceMapper.java @@ -0,0 +1,49 @@ +/* + * Copyright (c) 2019 TOYOTA MOTOR CORPORATION + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package app.market.persistence.mapper.resource; + +import java.util.List; +import app.market.model.resource.Resource; +import app.market.model.resource.ResourceExample; +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; + +@Repository(value = "ResourceMapper") +public interface ResourceMapper { + int countByExample(ResourceExample example); + + int deleteByExample(ResourceExample example); + + int deleteByPrimaryKey(String resId); + + int insert(Resource record); + + int insertSelective(Resource record); + + List selectByExample(ResourceExample example); + + Resource selectByPrimaryKey(String resId); + + int updateByExampleSelective(@Param("record") Resource record, @Param("example") ResourceExample example); + + int updateByExample(@Param("record") Resource record, @Param("example") ResourceExample example); + + int updateByPrimaryKeySelective(Resource record); + + int updateByPrimaryKey(Resource record); + + List selectResourcesByUserId(String userName); +} \ No newline at end of file diff --git a/appmarket-persistence/src/main/java/app/market/persistence/mapper/user/UserAuthorityLinkMapper.java b/appmarket-persistence/src/main/java/app/market/persistence/mapper/user/UserAuthorityLinkMapper.java new file mode 100644 index 0000000..145cde7 --- /dev/null +++ b/appmarket-persistence/src/main/java/app/market/persistence/mapper/user/UserAuthorityLinkMapper.java @@ -0,0 +1,43 @@ +/* + * Copyright (c) 2019 TOYOTA MOTOR CORPORATION + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package app.market.persistence.mapper.user; + +import java.util.List; +import app.market.model.user.UserAuthorityLinkExample; +import app.market.model.user.UserAuthorityLinkKey; +import org.apache.ibatis.annotations.Param; +import org.springframework.stereotype.Repository; + +@Repository(value = "UserAuthorityLinkMapper") +public interface UserAuthorityLinkMapper { + int countByExample(UserAuthorityLinkExample example); + + int deleteByExample(UserAuthorityLinkExample example); + + int deleteByPrimaryKey(UserAuthorityLinkKey key); + + int insert(UserAuthorityLinkKey record); + + int insertSelective(UserAuthorityLinkKey record); + + List selectByExample(UserAuthorityLinkExample example); + + int updateByExampleSelective(@Param("record") UserAuthorityLinkKey record, + @Param("example") UserAuthorityLinkExample example); + + int updateByExample(@Param("record") UserAuthorityLinkKey record, + @Param("example") UserAuthorityLinkExample example); +} \ No newline at end of file diff --git a/appmarket-persistence/src/main/java/app/market/persistence/mapper/user/UserMapper.java b/appmarket-persistence/src/main/java/app/market/persistence/mapper/user/UserMapper.java new file mode 100644 index 0000000..e334146 --- /dev/null +++ b/appmarket-persistence/src/main/java/app/market/persistence/mapper/user/UserMapper.java @@ -0,0 +1,70 @@ +/* + * Copyright (c) 2019 TOYOTA MOTOR CORPORATION + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package app.market.persistence.mapper.user; + +import java.util.List; +import app.market.model.user.User; +import app.market.model.user.UserExample; +import org.apache.ibatis.annotations.Param; +import org.apache.ibatis.session.RowBounds; +import org.springframework.stereotype.Repository; + +@Repository(value = "UserMapper") +public interface UserMapper { + int countByExample(UserExample example); + + int deleteByExample(UserExample example); + + int deleteByPrimaryKey(String userId); + + int insert(User record); + + int insertSelective(User record); + + List selectByExample(UserExample example); + + User selectByPrimaryKey(String userId); + + List selectOptionByExample(UserExample example); + + User selectOneByExample(UserExample example); + + User selectByLoginId(String loginId); + + int updateByExampleSelective(@Param("record") User record, @Param("example") UserExample example); + + int updateByExample(@Param("record") User record, @Param("example") UserExample example); + + int updateByPrimaryKeySelective(User record); + + int updateByPrimaryKey(User record); + + int updatePassword(User record); + + int updateByPrimaryKeyWithBLOBs(User record); + + int insertOrUpdate(User record); + + List selectByExample(RowBounds rowBounds, UserExample example); + + int deleteByUserName(String userName); + + int countByUserName(String userName); + + int countByUserId(String userId); + + User selectByUserName(String userName); +} \ No newline at end of file -- cgit 1.2.3-korg